A common and important cause of ED is vasculogenic. Many men with ED have comorbid conditions such as hyperlipidemia, hypercholesterolemia, tobacco abuse, diabetes mellitus, or coronary artery disease (CAD).  The Princeton III Consensus recommends screening men who present with ED for cardiovascular risk factors; ED may be the earliest presentation of atherosclerosis and vascular disease. 
Sildenafil (Viagra) was the first oral phosphodiesterase type 5 (PDE5) inhibitor approved by the FDA in the United States for the treatment of erectile dysfunction (it is not approved for women). Sildenafil inhibits PDE5, which is an enzyme that destroys cGMP. By inhibiting the destruction of cGMP by PDE5, sildenafil allows cGMP to accumulate. The cGMP in turn prolongs relaxation of the smooth muscle of the corpora cavernosa. Relaxation of the corpora cavernosa smooth muscle allows blood to flow into the penis resulting in increased engorgement of the penis. In short, sildenafil increases blood flow into the penis and decreases blood flow out of the penis.
Lifestyle choices that impair blood circulation can contribute to ED. Smoking, excessive drinking, and drug abuse may damage the blood vessels and reduce blood flow to the penis. Smoking makes men with atherosclerosis particularly vulnerable to ED. Being overweight and getting too little exercise also contribute to ED. Studies indicate that men who exercise regularly have a lower risk of ED.
The rumors are true. Having too much to drink can interfere with a man’s ability to have an erection. According to Everyday Health, alcohol is a depressant. This means that, along with dampening your ability to think, speak, and move efficiently, it can also dampen mood, decrease sexual desire, and make it difficult for a man to achieve erection or reach an orgasm. This is because alcohol decreases blood flow to the penis. That not only may reduce a man’s ability to have an erection, but even if he is lucky enough to get it hard, alcohol can reduce the intensity of his orgasm.
I'm a college guy who has only had sex a handful of times, and I've noticed a bit of a reccurring issue. During any foreplay and all that good stuff, I have a nice big erection, but as soon as I'm about to stick it in, the erection disappears like a frightened turtle. Then once the 30 seconds of embarrassing made-up explanations concludes, the erection is back.
Ejaculatory incompetence, erectile difficulty, erectile dysfunction, erectile failure, frigidity–female Medtalk The inability to achieve or maintain a penile erection adequate for the successful completion of intercourse, terminating in ejaculation; penile erection is mediated by nitric oxide Epidemiology Prevalence of minimal, moderate, and complete impotence in the Massachusetts Male Aging Study was 52%; age is the most important factor; complete impotence ↑ from 5%–age 40 to 15%–age 70; for an erection to achieve a successful outcome, it requires
Diabetes is one of the most common causes of ED. Chronically high blood sugar levels can result in nerve damage that affects your body’s ability to translate pleasurable sexual stimulation into an erection. Diabetes can also lead to issues with circulation, which reduces blood flow to the penis and makes it more difficult to keep an erection that is hard enough for intercourse.
In some cases, ED can be a warning sign of more serious disease. One study suggests ED is a strong predictor of heart attack, stroke, and death from cardiovascular disease. The researchers say all men diagnosed with ED should be evaluated for cardiovascular disease. This does not mean every man with ED will develop heart disease, or that every man with heart disease has ED, but patients should be aware of the link.