When you become aroused, your brain sends chemical messages to the blood vessels in the penis, causing them to dilate or open, allowing blood to flow into the penis. As the pressure builds, the blood becomes trapped in the corpora cavernosa, keeping the penis erect. If blood flow to the penis is insufficient or if it fails to stay inside the penis, it can lead to erectile dysfunction.
But if a man with sleep apnea is diagnosed with low testosterone alone, taking the supplemental hormone can worsen sleep apnea. That's why it's crucial for men with low testosterone to get a thorough workup by an endocrinologist so underlying conditions that can cause low testosterone, such as sleep apnea or pituitary-gland tumors, don't go undiagnosed, Dr. Goodman says.
The primary nerve fibers to the penis are from the dorsal nerve of the penis, a branch of the pudendal nerve. The cavernosal nerves are a part of the autonomic nervous system and incorporate both sympathetic and parasympathetic fibers. They travel posterolaterally along the prostate and enter the corpora cavernosa and corpus spongiosum to regulate blood flow during erection and detumescence. The dorsal somatic nerves are also branches of the pudendal nerves. They are primarily responsible for penile sensation. 
Low testosterone levels can cause mood disturbances, increased body fat, loss of muscle tone, inadequate erections and poor sexual performance, osteoporosis, difficulty with concentration, memory loss and sleep difficulties. Current research suggests that this effect occurs in only a minority (about 2%) of ageing men. However, there is a lot of research currently in progress to find out more about the effects of testosterone in older men and also whether the use of testosterone replacement therapy would have any benefits.
Studies show that high cholesterol and obesity are linked to erectile dysfunction, and both can be improved through diet. "A heart-healthy diet that prevents cardiovascular disease and maintains a healthy weight is also good for erectile functioning," says Feloney. An ideal diet plan involves eating foods low in saturated fat and cholesterol and having frequent servings of fruits, vegetables, and plenty of whole grains.
Male hypogonadism becomes more common with increasing age and is currently an under-treated condition. The diagnosis of hypogonadism in the aging male requires a combination of symptoms and low serum testosterone levels. The currently available testosterone preparations can produce consistent physiological testosterone levels and provide for patient preference.