The mechanisms by which testosterone plays a role in erectile function are not completely understood. A study evaluating the effect of testosterone on erections in surgically castrated rabbits and control animals, in which the rabbits’ intracavernosal pressures were compared after cavernosal nerve stimulation, determined that castrated rabbits had much lower pressures after stimulation than control rabbits did.  Notably, the pressures increased when castrated rabbits received exogenous testosterone replacement.
A variety of personal habits and lifestyle choices have been linked to ED. In some ways, this is a good thing, since habits can be broken and choices reconsidered. What's more, many of the lifestyle factors that contribute to sexual problems are ones that affect overall health and well-being, both physical and mental. Addressing these factors, therefore, can have benefits beyond improving erectile dysfunction.
It is common for a healthy older man to still want sex and be able to have sex within appropriate limitations. Understanding what is normal in older age is important to avoid frustration and concern. Older men and their partners often value being able to continue sexual activity and there is no age where the man is ‘too old’ to think about getting help with his erection or other sexual problems.
Take an ED drug. Such drugs can help men maintain erections for several hours at a time. They work by enhancing the effect of nitric oxide, which the body produces naturally to relax and increase blood flow to the penis. If you're interested in taking a drug specifically geared toward treating ED, talk with your doctor about getting a prescription.
Effective treatment for erectile dysfunction is available, and for most men will allow the return to a fulfilling sex life. The side effects of the treatment for erectile dysfunction vary depending on the treatment that is used. Some may interrupt the spontaneity of sexual activity. For example, PDE-5 inhibitors typically need to be taken one hour before sex. Side effects may include headaches, indigestion, vasodilation, diarrhoea and blue tinge to vision. Other treatments such as penile injections may cause pain at the injection site, or an erection that will not go down. Treatment options need to be carefully discussed with your doctor to determine which one is best suited to you.
Causes of impotence are many and include heart disease, high cholesterol, high blood pressure, obesity, metabolic syndrome, Parkinson's disease, Peyronie's disease, substance abuse, sleep disorders, BPH treatments, relationship problems, blood vessel diseases (such as peripheral vascular disease and others), systemic disease, hormonal imbalance, and medications (such as blood pressure and heart medications).
Vacuum devices for ED, also called pumps, offer an alternative to medication. The penis is placed inside a cylinder. A pump draws air out of the cylinder, creating a partial vacuum around the penis. This causes it to fill with blood, leading to an erection. An elastic band worn around the base of the penis maintains the erection during intercourse.
The association between low testosterone and ED is not entirely clear. Although these 2 processes certainly overlap in some instances, they are distinct entities. Some 2-21% of men have both hypogonadism and ED; however, it is unclear to what degree treating the former will improve erectile function.  About 35-40% of men with low testosterone see an improvement in their erections with testosterone replacement; however, almost 65% of these men see no improvement. 
Several pre-treatment factors have been described that may indicate success with PDE5i therapy. The presence of an upper motor neuron lesion up to T12 suggests a successful response, as well as requirement for a lower dosage of medication (62,68-71). Additionally, the presence of residual erections after injury or an incomplete SCI (ASI-A vs. ASIB-D) also improve the chance of PDE5i treatment success (59,67,68,71).
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.