When you become aroused, your brain sends chemical messages to the blood vessels in the penis, causing them to dilate or open, allowing blood to flow into the penis. As the pressure builds, the blood becomes trapped in the corpora cavernosa, keeping the penis erect. If blood flow to the penis is insufficient or if it fails to stay inside the penis, it can lead to erectile dysfunction.
The surgery for placement of a penile prosthesis is typically an outpatient surgery. Doctors often perform a penile prosthesis through a single incision, and all of the components are hidden under the skin. Health care professionals often give patients antibiotics at the time of surgery and often after the surgery to decrease the risk of developing an infection. Depending on your health history, a health care provider may leave a catheter in your penis to drain your bladder overnight.
If PDE-5 inhibitors are not suitable or don’t work, other therapies include injections into the base of the penis, which cause flow of blood into the penis and a fairly immediate erection that lasts around an hour. The drugs injected are alprostadil (Caverject and Erectile dysfunctionex) and Invicorp (VIP and phentolamine). Alprostadil may also be inserted as a gel into the opening of the penis. This is not suitable if your partner is pregnant.
In patients with low testosterone, testosterone treatment can improve libido and erectile dysfunction, but many men still may need additional oral medications such as sildenafil, vardenafil, or tadalafil. Some studies suggest that men with ED and low testosterone may respond better to PDE5 inhibitors when given testosterone therapy; however, this is controversial.
The Cancer of the Prostate Strategic Urologic Research Endeavor (CaPSURE) study, designed to determine whether an individual man’s sexual outcomes after most common treatments for early-stage prostate cancer could be accurately predicted on the basis of baseline characteristics and treatment plans, found that 2 years after treatment, 177 (35%) of 511 men who underwent prostatectomy reported the ability to attain functional erections suitable for intercourse. 
While erectile dysfunction can occur at any age, the risk of developing erectile dysfunction increases with age. According to the Massachusetts Male Aging Study, the prevalence of erectile dysfunction was 52% in men 40-70 years of age. The prevalence of complete erectile dysfunction increases from 5% at 40 years of age to 15% among men 70 years of age and older.
A vacuum erection device is a plastic tube that slips over the penis, making a seal with the skin of the body. A pump at the other end of the tube makes a low-pressure vacuum around the erectile tissue, which results in an erection. An elastic ring is then slipped onto the base of the penis. This holds the blood in the penis (and keeps it hard) for up to 30 minutes. With proper training, 75 out of 100 men can get a working erection using a vacuum erection device.