This may be the oldest excuse in the book as a reason not to have safe sex, but research has confirmed that condoms may interfere with some men’s ability to have and hold an erection. For example, a 2006 study found that, over a three-month period, about 37 percent of men lost at least one erection when putting on a condom, or during sex with a condom, SexualHealth.com reported.
Traditionally, erectile impotence (the classical definition of impotence) is the failure to achieve penile erection during intercourse. It may have either physical or psychological causes. Alcoholism, endocrine disease, and neurological disorders are typical physical causes. Psychological causes include anxiety over performance, hostility or other negative feelings toward the sexual partner, and stress, anxiety, depression, or other emotional conflicts outside of the relationship. Erectile impotence occasionally occurs with age and, although attributed by the individual to the aging process itself, it is usually secondary to disorders of aging, such as faulty blood circulation or prostate disease. In cases of impotence caused by blood vessel dysfunction, an insufficient supply of blood flows into the penis, or the blood diffuses out into adjacent tissues.
Smoking damages blood vessels, inhibiting blood flow throughout the body ... and I mean throughout the body. While studies have found that men with erectile problems only make up 20 percent of the general population, 40 percent of men with erectile problems are smokers. And a 2011 study of a group of male smokers with erectile problems found that 75 percent of them saw those erectile problems disappear after they quit.
Some men should not take PDE5 inhibitors. They can cause hypotension (abnormally low blood pressure that can lead to fainting and even shock) when given to patients who are taking nitrates (medications taken for heart disease). Therefore, patients taking nitrates daily should not take any of the PDE5 inhibitors. Nitrates relieve angina (chest pain due to insufficient blood supply to the heart muscle because of narrowing of the coronary arteries); these include nitroglycerine tablets, patches, ointments, sprays, and pastes, as well as isosorbide dinitrate and isosorbide mononitrate. Other nitrates such as amyl nitrate and butyl nitrate also are in some recreational drugs called "poppers."
Exercise and lifestyle modifications may improve erectile function. Weight loss may help by decreasing inflammation, increasing testosterone, and improving self-esteem. Patients should be educated to increase activity, reduce weight, and stop smoking, as these efforts can improve or restore erectile function in men without comorbidities. Precise glycemic control in diabetic patients and pharmacologic treatment of hypertension may be important in preventing or reducing sexual dysfunction. 
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.
The physical side effects of chemotherapy are usually temporary and resolve within one to two weeks after stopping the chemotherapy. However, chemotherapy agents, such as Ciplatin or Vincristine, may interfere with the nerves that control erection leading to possible impotence. Make sure you discuss potential side effects of cancer chemotherapy with your doctor or healthcare provider.
However, a review of a United Kingdom medical record database found no evidence that the use of 5-alpha reductase inhibitors independently increase the risk for ED. In 71,849 men with benign prostatic hyperplasia (BPH), the risk of ED was not increased with the use of finasteride or dutasteride only (odds ratio [OR] 0.94), or a 5-alpha reductase inhibitor plus an alpha blocker (OR 0.92) compared with an alpha blocker only. In addition, the risk of ED was not increase in 12 346 men prescribed finasteride 1 mg for alopecia, compared with unexposed men with alopecia (OR 0.95). The risk of ED did increase with longer duration of BPH, regardless of drug exposure. 
Occasional successful sexual function and early morning erections do not preclude the possibility of endocrine dysfunction. Since abnormally low levels of testosterone frequently are the primary cause of impotence, it is recommended that determination of the blood level of testosterone be an integral part of the total evaluation of the impotent patient.
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.
Total testosterone levels: Health care professionals should obtain a patient's blood samples for total testosterone levels in the early morning (before 8 a.m.) because the testosterone levels go up and down throughout the day. If you have a low testosterone level, a health care professional should check it again to confirm that it is truly low. In some men, a specialized test measuring the active form of testosterone (free or bioavailable testosterone) may be recommended.
Vacuum devices for ED, also called pumps, offer an alternative to medication. The penis is placed inside a cylinder. A pump draws air out of the cylinder, creating a partial vacuum around the penis. This causes it to fill with blood, leading to an erection. An elastic band worn around the base of the penis maintains the erection during intercourse.