Sildenafil (Viagra) was the first oral phosphodiesterase type 5 (PDE5) inhibitor approved by the FDA in the United States for the treatment of erectile dysfunction (it is not approved for women). Sildenafil inhibits PDE5, which is an enzyme that destroys cGMP. By inhibiting the destruction of cGMP by PDE5, sildenafil allows cGMP to accumulate. The cGMP in turn prolongs relaxation of the smooth muscle of the corpora cavernosa. Relaxation of the corpora cavernosa smooth muscle allows blood to flow into the penis resulting in increased engorgement of the penis. In short, sildenafil increases blood flow into the penis and decreases blood flow out of the penis.
What happens is that the blood vessels of the penis are rather small, and a small amount of plaque in the penile arteries is going to result in erectile dysfunction. You need more plaque before the person’s actually symptomatic from a heart problem, but they’re linked. And so when anybody, any man has an erectile issue, it’s incumbent upon the physician to make certain that their cardiac status is healthy.
All studies demonstrate a strong association with age, even when data are adjusted for the confounding effects of other risk factors. The independent association with aging suggests that vascular changes in the arteries and sinusoids of the corpora cavernosa, similar to those found elsewhere in the body, are contributing factors. Other risk factors associated with aging include depression, sleep apnea, and low HDL levels.
Conditions that may be associated with ED include diabetes, [25, 26, 27] hypertension,  , and CAD, as well as neurologic disorders, endocrinopathies, benign prostatic hyperplasia,  , sleep apnea  , COPD,  and depression (see Table 1 below). [32, 33, 34, 35] In fact, almost any disease may affect erectile function by altering the nervous, vascular, or hormonal systems. Various diseases may produce changes in the smooth muscle tissue of the corpora cavernosa or influence the patient’s psychological mood and behavior.
It's unlikely. Testosterone levels fall as you get older but they have to fall really low to cause erectile problems. Thus assessment for erectile dysfunction includes a testosterone blood test but only replacement if it is very low. Giving someone more testosterone than their body would have made, even at a young age, can cause blood clots due to blood thickening and even reversible infertility. So don't be tempted with homespun remedies.
Taking one of these tablets will not automatically produce an erection. Sexual stimulation is needed first to cause the release of nitric oxide from your penile nerves. These medications amplify that signal, allowing some men to function normally. Oral erectile dysfunction medications are not aphrodisiacs, will not cause excitement and are not needed in men who get normal erections.
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. 
Tests such as the bulbocavernosus reflex test are used to determine if there is sufficient nerve sensation in the penis. The physician squeezes the glans (head) of the penis, which immediately causes the anus to contract if nerve function is normal. A physician measures the latency between squeeze and contraction by observing the anal sphincter or by feeling it with a gloved finger inserted past the anus.
Other hormone levels: Measurement of other hormones beside testosterone (luteinizing hormone [LH], prolactin level, and cortisol level) may provide clues to other underlying causes of testosterone deficiency and erectile problems, such as pituitary disease or adrenal gland abnormalities. Doctors may check thyroid levels in some individuals as both hypothyroidism (low thyroid function) and hyperthyroidism (overactive thyroid function) can contribute to erectile dysfunction.
If you’re no longer having intercourse, you don’t need erections. Most men assume that erections are necessary for sex. No. Couples can have great sex without them. Intercourse becomes problematic for older couples. Men have erection issues and post-menopausal women develop vaginal dryness and atrophy that can make intercourse uncomfortable (or worse) even with lubricants. Many older couples jettison intercourse in favor of mutual massage, oral sex, and sex toys—and still enjoy hot sex.
There are treatments available to help you to get and maintain an erection. In addition, making healthy changes to your lifestyle could help with impotence. Switching to a healthier balanced diet, taking more exercise and cutting down on or giving up alcohol and cigarettes could help you to see an improvement in sexual function. If you think that the problem may be related to stress or anxiety, counselling can also help.
The common PDE5 inhibitor drugs approved in the United States are sildenafil (Viagra), vardenafil (Levitra and Staxyn, the generic form), tadalafil (Cialis), or avanafil (Stendra). All of the currently approved PDE5 inhibitors work in the same way. They differ in the number of available doses, how quickly they work and last in your system, the dosing, and to some extent in the side effects. However, they generally share the same indications and contraindications. Currently, tadalafil is the only medication that patients can take on a daily basis and is approved for the treatment of both ED and BPH (benign enlargement of the prostate).
Talk with your doctor before trying supplements for ED. They can contain 10 or more ingredients and may complicate other health conditions. Asian ginseng and ginkgo biloba (seen here) are popular, but there isn't a lot of good research on their effectiveness. Some men find that taking a DHEA supplement improves their ability to have an erection. Unfortunately, the long-term safety of DHEA supplements is unknown. Most doctors do not recommend using it.