When a man becomes sexually excited, muscles in their penis relax. This relaxation allows for increased blood flow through the penile arteries. This blood fills two chambers inside the penis called the corpora cavernosa. As the chambers fill with blood, the penis grows rigid. Erection ends when the muscles contract and the accumulated blood can flow out through the penile veins.
^ Jump up to: a b Sapienza P, Zingales L, Maestripieri D (September 2009). "Gender differences in financial risk aversion and career choices are affected by testosterone". Proceedings of the National Academy of Sciences of the United States of America. 106 (36): 15268–73. Bibcode:2009PNAS..10615268S. doi:10.1073/pnas.0907352106. PMC 2741240. PMID 19706398.
With sex therapy, your counselor looks at the sexual problems you and your partner are having. Sex therapy works with problems such as performance anxiety, which means that you worry so much about whether you will be able to have sex that you are not able to. It also helps when you have erection problems that are not due to physical or drug problems, or premature ejaculation (you come too quickly). It may help you to reach orgasm or to learn to relax enough to avoid pain during sex. Counseling can help you to adjust to the treatment you and your doctor choose.
In Australia, where it is illegal for drug makers to advertise directly to consumers—as it is everywhere except the United States and New Zealand— Dr. Vitry told me via e-mail that the country's FDA-like regulatory body, Medicines Australia, fined Bayer a minuscule, but symbolic, 10,000 Australian dollars for breaching MA's code of conduct in its TRT disease-awareness campaign. Although Bayer implied that low testosterone was the most prevalent cause of the symptoms described, and that there was a high incidence of low T, Vitry said Medicines Australia didn't nail Bayer for illegal direct-to-consumer advertising because its campaign "did not encourage patients to seek a prescription for a specific testosterone product."
Dr. Ronald Swerdloff, chief of the endocrinology division at the Harbor-UCLA Medical Center and a professor of medicine at UCLA's David Geffen School of Medicine, served on the panel of experts who developed the Endocrine Society's guidelines. He is also the principal investigator for one of the 12 sites of The Testosterone Trial in Older Men, a nationwide study funded mainly by the National Institute on Aging. The study of 800 men over age 65 with low testosterone is looking at whether men using AndroGel for one year, compared to placebo, will show improvements in walking speed, sexual activity, vitality, memory, and anemia. The study will be completed in June 2015.
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.
Hormone deficiency or hypogonadism, whether primary or secondary, has been thought to impact erectile function. Approximately a third of men in the European Male Aging Study demonstrated low testosterone, suggesting that hypogonadism is overrepresented among men with ED.11 Hormone deficiency, however, is less frequently the cause of ED than diabetes or vascular disease. Many entities with a strong relationship to ED also diminish bioavailable testosterone, including obesity, diabetes, and opioid use. Other hormones involved in testosterone metabolism or availability, like thyroid stimulating hormone and gonadotropins, also may impact erectile quality, presumably through regulating bioavailable testosterone. Understanding the relationship between testosterone and ED has been impaired by a lack of standardized measurement of this hormone and the cyclic nature of its release and consumption.
Diabetes is an example of an endocrine disease that can cause a person to experience impotence. Diabetes affects the body’s ability to utilize the hormone insulin. One of the side effects associated with chronic diabetes is nerve damage. This affects penis sensations. Other complications associated with diabetes are impaired blood flow and hormone levels. Both of these factors can contribute to impotence.