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).
Testosterone is a sex hormone that plays important roles in the body. In men, it’s thought to regulate sex drive (libido), bone mass, fat distribution, muscle mass and strength, and the production of red blood cells and sperm. A small amount of circulating testosterone is converted to estradiol, a form of estrogen. As men age, they often make less testosterone, and so they produce less estradiol as well. Thus, changes often attributed to testosterone deficiency might be partly or entirely due to the accompanying decline in estradiol.
Performance anxiety can be another cause of impotence. If a person wasn’t able to achieve an erection in the past, he may fear he won’t be able to achieve an erection in the future. A person may also find he can’t achieve an erection with a certain partner. Someone with ED related to performance anxiety may be able to have full erections when masturbating or when sleeping, yet he isn’t able to maintain an erection during intercourse.
It may also become a treatment for anemia, bone density and strength problems. In a 2017 study published in the journal of the American Medical Association (JAMA), testosterone treatments corrected anemia in older men with low testosterone levels better than a placebo. Another 2017 study published in JAMA found that older men with low testosterone had increased bone strength and density after treatment when compared with a placebo. 
A number of research groups have tried to further define the relationship of testosterone and body composition by artificial alteration of testosterone levels in eugonadal populations. Induction of a hypogonadal state in healthy men (Mauras et al 1998) or men with prostate cancer (Smith et al 2001) using a gonadotrophin-releasing-hormone (GnRH) analogue was shown to produce increases in fat mass and decreased fat free mass. Another experimental approach in healthy men featured suppression of endogenous testosterone production with a GnRH analogue, followed by treatment with different doses of weekly intramuscular testosterone esters for 20 weeks. Initially the experiments involved men aged 18–35 years (Bhasin et al 2001) but subsequently the study was repeated with a similar protocol in men aged 60–75 years (Bhasin et al 2005). The different doses given were shown to produce a range of serum concentrations from subphysiological to supraphysiological (Bhasin et al 2001). A given testosterone dose produced higher serum concentrations of testosterone in the older age group (Bhasin et al 2005). Subphysiological dosing of testosterone produced a gain in fat mass and loss of fat free mass during the study. There were sequential decreases in fat mass and increases in fat free mass with each increase of testosterone dose. These changes in body composition were seen in physiological and supraphysiological treatment doses. The trend was similar in younger versus older men but the gain of fat mass at the lowest testosterone dose was less prominent in older patients (Bhasin et al 2001; Bhasin et al 2005). With regard to muscle function, the investigators showed dose dependent increases in leg strength and power with testosterone treatment in young and older men but there was no improvement in fatigability (Storer et al 2003; Bhasin et al 2005).
Hypogonadism is a disease in which the body is unable to produce normal amounts of testosterone due to a problem with the testicles or with the pituitary gland that controls the testicles. Testosterone replacement therapy can improve the signs and symptoms of low testosterone in these men. Doctors may prescribe testosterone as injections, pellets, patches or gels.