Examples of common neurologic conditions that can lead to ED include cerebral vascular accident, multiple sclerosis, Parkinson’s disease, and spinal cord injury. Microvascular disease associated with diabetes is thought to compound the endothelial and neural injuries associated with this disease. Pelvic surgery may disrupt both neural and vascular pathways, resulting in ED.
Modern drug therapy for ED made a significant advance in 1983, when British physiologist Giles Brindley dropped his trousers and demonstrated to a shocked Urodynamics Society audience his papaverine-induced erection. The drug Brindley injected into his penis was a non-specific vasodilator, an alpha-blocking agent, and the mechanism of action was clearly corporal smooth muscle relaxation. The effect that Brindley discovered established the fundamentals for the later development of specific, safe, and orally effective drug therapies.[better source needed][better source needed]
The development of an erection is a complex event involving integration of psychologic, neurologic, endocrine, vascular, and local anatomic systems. Positron emission tomography scanning studies have suggested that sexual arousal is activated in higher cortical centers that then stimulate the medial preoptic and paraventricular nuclei of the hypothalamus.5 These signals ultimately descend through a complex neural network involving the parasympathetic nervous system and eventually activate parasympathetic nerves in the sacral area (S2 to S4).
Both ED and low testosterone (hypogonadism) increase with age. The incidence of the latter is 40% in men aged 45 years and older.  Testosterone is known to be important in mood, cognition, vitality, bone health, and muscle and fat composition. It also plays a key role in sexual dysfunction (eg, low libido, poor erection quality, ejaculatory or orgasmic dysfunction, reduced spontaneous erections, or reduced sexual activity). 
In prescribing sildenafil, a doctor considers the age, general health status, and other medication(s) the patient is taking. The usual starting dose for most men is 50 mg, however, the doctor may increase or decrease the dose depending on side effects and effectiveness. The maximum recommended dose is 100 mg every 24 hours. However, many men will need 100 mg of sildenafil for optimal effectiveness, and some doctors are recommending 100 mg as the starting dose.
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 severity of ED has been correlated with the extent of CVD. Banks et al reported that the risk of future CV events increased progressively according to ED severity.28 This was shown in both men with and without known CVD at baseline and after controlling for confounders. Solomon and colleagues found an inverse correlation between international index of erectile function (IIEF) scores and plaque burden seen on coronary angiography.29 In addition, Yaman et al demonstrated a significant correlation between ED severity on IIEF questionnaires and coronary artery calcification.30
Prevention of some of the causes that contribute to the development of erectile dysfunction can decrease the chances of developing the problem. For example, if a person decreases their chances of developing diabetes, heart disease, and hypertension, they will decrease their chances of developing erectile dysfunction. Other things like stopping smoking, eating a healthy diet (heart healthy with adequate vitamin intake), and exercising daily may reduce a person's risk.
Choosing the treatment that is best for you comes down to preference and efficacy. Montague cites a study that surveyed three groups of men, all of whom were successfully using an ED treatment. One group was on oral medications, one was using injections and a third had surgically implanted pumps. The most satisfied users were those with the implanted prostheses.
In 1983, Brindley injected the corpora of several SCI men with phentolamine (85). Two out of the three men had a sufficient erection produced. Since then multiple reports on the efficacy of intracavernosal therapy have been published using, phentolamine, papaverine, prostaglandin, vasoactive intestinal peptide (VIP), and these medications in combination (86-90). These medications have been found to be extremely effective for neurogenic ED due to their ability act locally and essentially bypassing neuronal pathways. Local therapies are usually considered second-line after PDE5i fail to elicit a desired response which can occur in about 25–30% of men with ED, in general (91). Furthermore, the locally delivered medications can be quite dangerous if not used appropriately as priapism and significant pain with injections can occur. These specific occurrences have been suggested as a reason for high discontinuation rates with intracavernosal therapy (92).
I would think the 25% is just an average. Some men never have a problem with erections. Some healthy men in their 60's never have a problem with their erections -- no Viagra needed at all, thank you. And, no, it is NOT completely associated with age. In fact, many men in their 40's and even younger, are already dealing with ED, especially if they smoke, are obese, don't exercise, or are addicted to porn, among other things. In fact, even men in their 20's and 30's can have these problems.
Whenever I am prescribing a medication to a patient, I’m always asking myself, what can the patient do before requiring the medication? What changes do they have to make in order to reduce the amount of medication or preclude their even needing it? So a good candidate is somebody who has an understanding of a healthy lifestyle, about physical activity, about sleep, about nutrition, alcohol, smoking. So patients, individuals, have to do their share before they’re a candidate for anything. All right?
The American Urological Association Guideline on the Management of ED states oral PDE5i are considered first line therapy for the treatment of ED, unless contraindicated (57). Sildenafil, the first oral PDE5i, was introduced in 1998 and has revolutionized ED therapy due to its broad applicability, effectiveness and safety profile. PDE5i work by preventing hydrolysis of cGMP by the PDE5 enzyme in the smooth muscle of the corpora cavernosa. cGMP degradation typically leads to smooth muscle contraction and detumescence prevented by PDE5i administration. Two other PDE5i, vardenafil and tadalafil are other PDE5i with different pharmacokinetics, PDE receptor selectivity and side effect profiles.
Sexual dysfunction and ED become more common as men age. The percentage of complete ED increases from 5% to 15% as age increases from 40 to 70 years. But this does not mean growing older is the end of your sex life. ED can be treated at any age. Also, ED may be more common in Hispanic men and in those with a history of diabetes, obesity, smoking, and hypertension. Research shows that African-American men sought medical care for ED twice the rate of other racial groups.