Under normal circumstances, when a man is sexually stimulated, his brain sends a message down the spinal cord and into the nerves of the penis. The nerve endings in the penis release chemical messengers, called neurotransmitters, that signal the corpora cavernosa (the two spongy rods of tissue that span the length of the penis) to relax and fill with blood. As they expand, the corpora cavernosa close off other veins that would normally drain blood from the penis. As the penis becomes engorged with blood, it enlarges and stiffens, causing an erection. Problems with blood vessels, nerves, or tissues of the penis can interfere with an erection.
Half of all men between the ages of 40 and 70 will experience erectile dysfunction. While the problem doesn't cause heart disease, the two often occur together – study after study has shown that men with ED are dramatically more likely to develop heart disease and have a heart attack or stroke. One German study from 2010 found men with erectile dysfunction are twice as likely to die within the next two years as those without, prompting some experts to call the phenomenon "the canary in the trousers".
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. 
Some men report being helped by an oral medication called yohimbine, which comes from the bark of a tree that grows in India and Africa. This drug, which needs to be taken every day, has been reported to help about 20 to 25 percent of the men taking it. A relatively new but widely used oral medication called Viagra requires a careful medical evaluation by your doctor.
Remember those cultural messages we discussed earlier, about how men are wild sex aliens from the planet Weenus? Well, men are raised hearing those messages, too, and they can end up screwing with their sexual self-image —for instance, they can lead men to obsess over their own virility, and panic about impressing a new partner, until they've thought their boner into a corner and can't get an erection. Performance anxiety is one of the most common culprits behind lost erections, especially among younger, less experienced men.
The more you puff, the more you put your penis at risk, according to a study from the Tulane University School of Public Health and Tropical Medicine. The researchers examined 7,684 men between the ages of 35-74 and concluded about 23 percent of erectile dysfunction cases can be chalked up to cigarette smoking. This is probably the best motivator If you've been struggling to quit.
None of the ED drugs is safe to take with cardiac drugs called nitrates because it could cause a dangerous drop in blood pressure. Drugs that many men take for urinary symptoms, called alpha blockers, can also lower blood pressure, so take them at least four hours apart from ED drugs. Your doctor may start you on a smaller dose of the ED drug if you already take an alpha blocker, or may recommend the alpha blocker tamsulosin (Flomax), which affects blood pressure less.
How men can improve their sexual performance Many men want to know how to enhance their own and their partners’ sexual satisfaction. However, placing too much emphasis on performance can lead to anxiety. Certain lifestyle changes can help to reduce sexual anxiety, improve erectile dysfunction, and increase stamina. In this article, we describe 13 methods to try. Read now
Vascular: Anything that affects the flow of blood to the penis can result in erectile dysfunction. The main culprit tends to be atherosclerosis, the condition that narrows arteries and which can result in poor blood circulation, high blood pressure, heart disease and stroke. Atherosclerosis causes about half the cases of erectile dysfunction in men over 50. Also, the veins through which the blood leaves the penis may not be working properly, allowing the blood to leave too soon.
By contrast, psychogenic impotence typically is abrupt in onset, often in relation to psychological trauma, and may wax and wane. Patients with psychogenic impotence may have total erectile failure with one partner but not another, or be impotent during sexual intercourse but not during self-stimulation. Normally occurring spontaneous erections in the morning suggest psychogenic rather than organic causes for impotence.
Erection dissatisfaction can actually enhance lovemaking. The dark cloud of erection changes has a silver lining. Young couples often have problems because young men become aroused faster than young women. Young men are often all finished before young women have even started to get aroused. Post-50 erection changes slow men’s arousal process so their erotic pace more closely matches women’s. A slower pace allows plenty time for kissing, cuddling, and whole-body massage, all essential to most women’s enjoyment of sex. Seen in this light, for many older couples, erection dissatisfaction can be a gift.
The link between chronic disease and ED is most striking for diabetes. Men who have diabetes are two to three times more likely to have erectile dysfunction than men who do not have diabetes. Among men with erectile dysfunction, those with diabetes may experience the problem as much as 10 to 15 years earlier than men without diabetes. Yet evidence shows that good blood sugar control can minimize this risk. Other conditions that may cause ED include cardiovascular disease, atherosclerosis (hardening of the arteries), kidney disease, and multiple sclerosis. These illnesses can impair blood flow or nerve impulses throughout the body.