In a prospective study from the Prostate Cancer Prevention Trial database, Thompson et al reported that men presenting with ED had a significantly higher chance of developing a cardiovascular event over a 7-year follow-up period.  The hazard ratio was 1.45, which is in the range of risk associated with current smoking or a family history of MI.
In other cases, men who habitually use alcohol or other drugs may experience similar results. Alcohol is a depressant to the central nervous system. This means that a little bit might be able to lighten the mood, but too much can basically shut down all communication between the brain and the penis. When this happens, no amount of will or stimulation will result in an erection. Other drugs can also affect the body’s ability to achieve an erection, including heroin and MDMA, otherwise known as ecstasy.
Qaseem, A., Snow, V., Denberg, T. D., Casey, D. E., Forciea, M. A., Owens, D. K., & Shekelle, P. (2009). Hormonal testing and pharmacologic treatment of erectile dysfunction: A clinical practice guideline from the American College of Physicians. Annals of internal medicine, 151(9), 639-649. Retrieved from http://annals.org/aim/article/745155/hormonal-testing-pharmacologic-treatment-erectile-dysfunction-clinical-practice-guideline-from