Having erection trouble from time to time isn't necessarily a cause for concern. If erectile dysfunction is an ongoing issue, however, it can cause stress, affect your self-confidence and contribute to relationship problems. Problems getting or keeping an erection can also be a sign of an underlying health condition that needs treatment and a risk factor for heart disease.
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.
Testosterone is necessary for normal sperm development. It activates genes in Sertoli cells, which promote differentiation of spermatogonia. It regulates acute HPA (hypothalamic–pituitary–adrenal axis) response under dominance challenge. Androgen including testosterone enhances muscle growth. Testosterone also regulates the population of thromboxane A2 receptors on megakaryocytes and platelets and hence platelet aggregation in humans.
Erectile dysfunction or ED (It used to be called impotence) is the inability to achieve or sustain an erection suitable for sexual intercourse. Problems with erections may stem from medications, chronic illnesses, poor blood flow to the penis, drinking too much alcohol, or being too tired. Erectile dysfunction can occur at any age, but it is more common in men older than 75.
Hypogonadism (as well as age-related low testosterone) is diagnosed with blood tests that measure the level of testosterone in the body. The Endocrine Society recommends testing for suspected low T with a total testosterone test. It may be performed in the morning when testosterone levels tend to be highest in young men, although this isn't necessarily the case in older men. The test may be repeated on another day if the results show a low T level. (5)
The Massachusetts Male Aging Study (MMAS) documented an inverse correlation between ED risk and high-density lipoprotein (HDL) cholesterol levels but did not identify any effect from elevated total cholesterol levels.  Another study involving male subjects aged 45-54 years found a correlation with abnormal HDL cholesterol levels but also found a correlation with elevated total cholesterol levels. The MMAS included a preponderance of older men.
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. 
Additionally, the physiologic processes involving erections begin at the genetic level. Certain genes become activated at critical times to produce proteins vital to sustaining this pathway. Some researchers have focused on identifying particular genes that place men at risk for ED. At present, these studies are limited to animal models, and little success has been reported to date.  Nevertheless, this research has given rise to many new treatment targets and a better understanding of the entire process.
This content is provided as a service of the National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK), part of the National Institutes of Health. The NIDDK translates and disseminates research findings through its clearinghouses and education programs to increase knowledge and understanding about health and disease among patients, health professionals, and the public. Content produced by the NIDDK is carefully reviewed by NIDDK scientists and other experts.
The partial synthesis in the 1930s of abundant, potent testosterone esters permitted the characterization of the hormone's effects, so that Kochakian and Murlin (1936) were able to show that testosterone raised nitrogen retention (a mechanism central to anabolism) in the dog, after which Allan Kenyon's group was able to demonstrate both anabolic and androgenic effects of testosterone propionate in eunuchoidal men, boys, and women. The period of the early 1930s to the 1950s has been called "The Golden Age of Steroid Chemistry", and work during this period progressed quickly. Research in this golden age proved that this newly synthesized compound—testosterone—or rather family of compounds (for many derivatives were developed from 1940 to 1960), was a potent multiplier of muscle, strength, and well-being.
Two of the immediate metabolites of testosterone, 5α-DHT and estradiol, are biologically important and can be formed both in the liver and in extrahepatic tissues. Approximately 5 to 7% of testosterone is converted by 5α-reductase into 5α-DHT, with circulating levels of 5α-DHT about 10% of those of testosterone, and approximately 0.3% of testosterone is converted into estradiol by aromatase. 5α-Reductase is highly expressed in the male reproductive organs (including the prostate gland, seminal vesicles, and epididymides), skin, hair follicles, and brain and aromatase is highly expressed in adipose tissue, bone, and the brain. As much as 90% of testosterone is converted into 5α-DHT in so-called androgenic tissues with high 5α-reductase expression, and due to the several-fold greater potency of 5α-DHT as an AR agonist relative to testosterone, it has been estimated that the effects of testosterone are potentiated 2- to 3-fold in such tissues.
Dr. Wyne told me that although she has seen an increase in male patients asking about low testosterone, she hasn't seen an actual increase in the condition itself. "I do see an increase in guys who are fatter," she said. "The question is whether, if you lose 15 or 20 pounds, your testosterone would revert [to normal]. We know that even 15 pounds makes a huge difference to their level. Most of these guys actually have 50 pounds to lose."
If a trial of oral therapy and withdrawal of offending medications do not restore erectile function or if a patient has medical or financial contraindications to pharmacologic therapy, most primary care practitioners should consider referring the patient to a specialist for additional evaluation and discussion of alternative treatment options. However, some primary care practitioners may recommend vacuum constriction devices.
Transdermal preparations of testosterone utilize the fact that the skin readily absorbs steroid hormones. Initial transdermal preparations took the form of scrotal patches with testosterone loaded on to a membranous patch. Absorption from the scrotal skin was particularly good and physiological levels of testosterone with diurnal variation were reliably attained. The scrotal patches are now rarely used because they require regular shaving or clipping of scrotal hair and because they produce rather high levels of dihydrotestosterone compared to testosterone (Behre et al 1999). Subsequently, non-scrotal patches were developed but the absorptive capacity of non-scrotal skin is much lower, so these patches contain additional chemicals which enhance absorption. The non-scrotal skin patches produce physiological testosterone levels without supraphysiological dihydrotestosterone levels. Unfortunately, the patches produce a high rate of local skin reactions often leading to discontinuation (Parker and Armitage 1999). In the last few years, transdermal testosterone gel preparations have become available. These require daily application by patients and produce steady state physiological testosterone levels within a few days in most patients (Swerdloff et al 2000; Steidle et al 2003). The advantages compared with testosterone patches include invisibility, reduced skin irritation and the ability to adjust dosage, but concerns about transfer to women and children on close skin contact necessitate showering after application or coverage with clothes.
Epidemiological data has associated low testosterone levels with atherogenic lipid parameters, including lower HDL cholesterol (Lichtenstein et al 1987; Haffner et al 1993; Van Pottelbergh et al 2003) and higher total cholesterol (Haffner et al 1993; Van Pottelbergh et al 2003), LDL cholesterol (Haffner et al 1993) and triglyceride levels (Lichtenstein et al 1987; Haffner et al 1993). Furthermore, these relationships are independent of other factors such as age, obesity and glucose levels (Haffner et al 1993; Van Pottelbergh et al 2003). Interventional trails of testosterone replacement have shown that treatment causes a decrease in total cholesterol. A recent meta-analysis of 17 randomized controlled trials confirmed this and found that the magnitude of changes was larger in trials of patients with lower baseline testosterone levels (Isidori et al 2005). The same meta-analysis found no significant overall change in LDL or HDL cholesterol levels but in trials with baseline testosterone levels greater than 10 nmol/l, there was a small reduction in HDL cholesterol with testosterone treatment.