In a recent study of male workers, men with low testosterone levels had an increased chance of severe erectile dysfunction (Kratzik et al 2005), although such a link had not been found previously (Rhoden et al 2002). Certainly erectile dysfunction is considered part of the clinical syndrome of hypogonadism, and questions regarding erectile dysfunction form part of the clinical assessment of patients with hypogonadism (Morley et al 2000; Moore et al 2004).
Sharma, R., Oni, O. A., Gupta, K., Chen, G., Sharma, M., Dawn, B., … & Barua, R. S. (2015, August 6). Normalization of testosterone level is associated with reduced incidence of myocardial infarction. European Heart Journal, 36(40), 2706-2715. Retrieved from https://academic.oup.com/eurheartj/article/36/40/2706/2293361/Normalization-of-testosterone-level-is-associated
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.
Erectile dysfunction is known to be associated with general health status, thus, lifestyle modification improves erectile function and decreases the rate of decline of function with aging. One year after discontinuation of smoking, patients were found to have a 25% improvement in erectile quality.16 In addition, multivariate analysis found obesity is associated with erectile dysfunction with an approximately 50% increase in ED in obese men as compared with normal weight men.17
Erectile dysfunction in older men. Because erections primarily involve the blood vessels, it is not surprising that the most common causes in older men are conditions that block blood flow to the penis, such as atherosclerosis or diabetes. Another vascular cause may be a faulty vein, which lets blood drain too quickly from the penis. Other physical disorders, as well as hormonal imbalances and certain operations, may also result in erectile dysfunction.
Exercise and lifestyle modifications may improve erectile function. Weight loss may help by decreasing inflammation, increasing testosterone, and improving self-esteem. Patients should be educated to increase activity, reduce weight, and stop smoking, as these efforts can improve or restore erectile function in men without comorbidities. Precise glycemic control in diabetic patients and pharmacologic treatment of hypertension may be important in preventing or reducing sexual dysfunction. 
In addition to its role as a natural hormone, testosterone is used as a medication, for instance in the treatment of low testosterone levels in men and breast cancer in women. Since testosterone levels decrease as men age, testosterone is sometimes used in older men to counteract this deficiency. It is also used illicitly to enhance physique and performance, for instance in athletes.
While pills for ED are convenient, some men sustain stronger erections by injecting medication directly into the penis. Drugs approved for this purpose work by widening the blood vessels, causing the penis to become engorged with blood. Another option is inserting a medicated pellet into the urethra. The pellet can trigger an erection within 10 minutes.
Chronic stress dumps adrenaline in your system multiple times a day. And that can lead to high blood pressure, heart disease, obesity, and diabetes. Chronic stress is like red-lining your car all day long. When you drive 100 mph all the time, something is going to break down. A high-stress environment can actually change the way your brain sends messages to your body. Dumping too much adrenaline into your bloodstream can affect blood flow and severely limit your ability to achieve and maintain an erection.
Men who watch a sexually explicit movie have an average increase of 35% in testosterone, peaking at 60–90 minutes after the end of the film, but no increase is seen in men who watch sexually neutral films. Men who watch sexually explicit films also report increased motivation, competitiveness, and decreased exhaustion. A link has also been found between relaxation following sexual arousal and testosterone levels.
These "disease-awareness" campaigns—ostensibly a public service intended to educate those potentially at risk about a condition they may not even have heard of but "could" have—are subtle, even insidious. They may not mention a specific product, but a bit of sleuthing reveals that their sponsors are usually pharmaceutical companies that "just happen" to manufacture products used to treat the real (or at least alleged) condition.
When I first started TRT, my physician prescribed a cream that you rub into your skin. The cream version of TRT is not too convenient, because if someone touches you while you have the cream on, the testosterone can rub off on him/her. This can be really bad around kids or pregnant women. If you’re sleeping next to someone, the cream can get on the sheets and transfer over that way, too. The cream can be annoying, but it works. There’s also a gel version called AndroGel; I skipped it because it doesn’t absorb as well as the cream does.