When stimulated by the nerves, the spongy tissue arranges itself in such a way that more blood can be stored in the penis. The veins running through the outer sheath of the penis then compress which stops the blood from leaving the penis. As the blood is stopped from flowing out, the penis fills with blood and stretches within the outer casing, giving an erection.
There are hundreds of medications that have the side effect of ED and/or decreased libido. Examples of drugs implicated as a cause of ED include hydrochlorothiazides and beta-blocking agents. Medications used to treat depression, particularly the SSRIs such as citalopram (Celexa), escitalopram (Lexapro), fluoxetine (Prozac, Prozac Weekly, Sarafem), fluvoxamine (Luvox, Luvox CR), paroxetine (Paxil, Paxil CR, Pexeva) and sertraline (Zoloft), may also contribute to ED.9 Bupropion (Wellbutrin) which has a predominant effect on blocking the reuptake of dopamine is an antidepressant with lower incidence of ED.10 The side effects of 5ARIs occurring in fewer than 5% of patients can include gynaecomastia, ED, loss of libido and ejaculatory dysfunction.11
In comparison, 37% of men who had received external radiotherapy as their primary therapy reported the ability to attain functional erections suitable for intercourse, along with 43% of men who had received brachytherapy as primary treatment. Pretreatment sexual health-related quality of life score, age, serum prostate-specific antigen (PSA) level, race or ethnicity, body mass index, and intended treatment details were associated with functional erections 2 years after treatment. 
This point is important – the anticipatory anxiety. Sports men and women regularly use “mental rehearsal” to help them prepare for a match. They imagine the shots, the game and perform according to plan when the event arises. Research has show that musicians mentally practicing their instrument in their mind, use the same brain processes as when playing for real.
Arterial revascularization procedures have a very limited role (e.g., in congenital or traumatic vascular abnormality) and probably should be restricted to the clinical investigation setting in medical centers with experienced personnel. All patients who are considered for vascular surgical therapy need to have appropriate preoperative evaluation, which may include dynamic infusion pharmaco-cavernosometry and cavernosography (DICC), duplex ultrasonography, and possibly arteriography. The indications for and interpretations of these diagnostic procedures are incompletely standardized; therefore, difficulties persist with using these techniques to predict and assess the success of surgical therapy, and further investigation to clarify their value and role in this regard is indicated.
The 4 ED medicines we prescribe – Generic sildenafil 20 mg, Viagra (also sildenafil), Cialis (Tadalafil), or Levitra (Vardenafil) - are generally safe but shouldn’t be used as recreational drugs. They’re meant to treat a medical condition and can cause serious side effects including but not limited to an erection lasting more than four hours, sudden loss of vision in one or both eyes, and sudden decrease or loss of hearing.
The link between chronic disease and ED is most striking for diabetes. Men who have diabetes are two to three times more likely to have erectile dysfunction than men who do not have diabetes. Among men with erectile dysfunction, those with diabetes may experience the problem as much as 10 to 15 years earlier than men without diabetes. Yet evidence shows that good blood sugar control can minimize this risk. Other conditions that may cause ED include cardiovascular disease, atherosclerosis (hardening of the arteries), kidney disease, and multiple sclerosis. These illnesses can impair blood flow or nerve impulses throughout the body.