Achieving an erection is a complicated process, requiring transmission of sensations from the genital area to the nervous system and the return of nervous impulses to the muscles and blood vessels of the penis. Anything that interferes with this interchange, such as disease or injury of the blood vessels, muscles, or nerves, can make achieving and maintaining an erection difficult. Psychological factors, such as anxiety and depression, can also interfere with erectile function. Anxiety and depression may also develop as a consequence of impotence.
Once implanted, the pumps become “part of their body,” Montague explains. “No out-of-pocket cost per use. Predictable response. Works every time.” Pills, even when they work, might be less effective if you’ve had more than a couple drinks or are out of sorts for other reasons. Injections are slightly more reliable than pills but, Montague says, are still subject to variability.
Oral phosphodiesterase type 5 inhibitors (PDE5 inhibitors) unless contraindicated are the recommended first line medical therapy for erectile dysfunction. Currently, there are four different PDE5 inhibitors available. They all work the same way and have essentially the same results. They differ in how long they last in your body and in side effects.
In order to establish whether normal erections are occurring overnight (nocturnal erections), the doctor may organise nocturnal penile tumescence (NPT) testing. This involves wearing a monitor overnight in your own home. The data from this monitor is then assessed to analyse how often erections occurred, how long they lasted, and how rigid and large the penis was during the erections. If NPT testing is normal, the cause of erectile dysfunction is usually psychological. If not, further testing of the blood flow in the genital area may be required to see if there is blockage or leakage. The doctor may also organise a blood test of levels of hormones such as testosterone, prolactin and thyroid stimulating hormone to see if these are contributing to the erectile dysfunction.
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. 
Surgery: If neither drugs nor the vacuum pump works, your doctor may suggest surgery. With surgery, the doctor can place a device in your penis that will cause enough hardness for intercourse. In a few cases, infections may develop after the operation, and the doctor may have to remove the device. Another operation that may help you is rebuilding the blood vessels in the penis to increase blood flow into the penis or decrease blood flow out of the penis. These procedures can help you to get and maintain an erection.
Other factors leading to erectile dysfunction are diabetes mellitus, which is a well-known cause of neuropathy). ED is also related to generally poor physical health, poor dietary habits, obesity, and most specifically cardiovascular disease, such as coronary artery disease and peripheral vascular disease. Screening for cardiovascular risk factors, such as smoking, dyslipidemia, hypertension, and alcoholism is helpful.
If you have unstable heart disease of any kind, heart failure or unstable, what we call angina, contraindication to using the medications. All right? So if you’re in an unstable medical state, these medications are not a good idea. Now, there are relative issues. If you may be taking a blood pressure medicine or a medicine for your prostate which dilates your blood vessel a little bit– you know, the typical ones are what we call the alpha blockers– you may have an additive effect from the medication. But for the most part, the medicines are incredibly safe.
Sildenafil is available as oral tablets at doses of 25 mg, 50 mg, and 100 mg. Patients should take sildenafil approximately one hour before sexual activity. In some men, the onset of action of the drug may be as early as 11-20 minutes. It's best for men to take sildenafil on an empty stomach for best results since absorption and effectiveness of sildenafil can be diminished if it is taken shortly after a meal, particularly a meal that is high in fat. Sildenafil and the other PDE5 inhibitors don't cause an immediate erection. Sexual stimulation is necessary for these medications to work.
Another study compared the response of surgically and medically castrated rabbits to vardenafil with that of control rabbits.  Castrated rabbits did not respond to vardenafil, whereas noncastrated rabbits did respond appropriately. This result suggests that a minimum amount of testosterone is necessary for PDE5 inhibitors to produce an erection.
PDE5 inhibitors, the primary second-line therapy, have been the mainstay of ED treatment since the release of sildenafil (Viagra) in 1998, with the subsequent development of many others, and still more in the development stage. These medications do improve erectile quality for the majority of men, and they work by enhancing blood flow in the corpora cavernosa. These medications are generally used on demand and need to be taken about an hour before sexual intimacy. Tadalafil (Cialis) is longer acting and does come in a daily preparation potentially eliminating the ‘on-demand’ need. The daily dosing of tadalafil, 2.5–5 mg\day, has also been approved by the FDA for treatment of symptoms of BPH.41 PDE5 inhibitors are contraindicated in men taking nitrates, but otherwise PDE5 inhibitors are very safe and effective. When PDE5 inhibitors are coadministered with nitrates, pronounced systemic vasodilation and severe hypotension are possible. Many patients with ED are elderly and have the same risk factors as patients with CAD, so these drug combinations are commonly considered or encountered in clinical practice.42
On the horizon is gene therapy that would deliver genes that produce products or proteins that may not be functioning properly in the penile tissue of men with ED. Replacement of these proteins may result in improvement in erectile function. Experimental animal models have demonstrated improvement in erectile function with gene therapy. Human studies may also demonstrate success with this therapy. Gene therapy may take a long time for regulatory approval and public acceptance.
ICI therapy often produces a reliable erection, which comes down after 20-30 minutes or with climax. Since the ICI erection is not regulated by your penile nerves, you should not be surprised if the erection lasts after orgasm. The most common side effect of ICI therapy is a prolonged erection. Prolonged erections (>1 hour) can be reversed by a second injection (antidote) in the office.