The male erectile response is a vascular event initiated by neuronal action and maintained by a complex interplay between vascular and neurological events. In its most common form, it is initiated by a central nervous system event that integrates psychogenic stimuli (perception, desire, etc.) and controls the sympathetic and parasympathetic innervation of the penis. Sensory stimuli from the penis are important in continuing this process and in initiating a reflex arc that may cause erection under proper circumstances and may help to maintain erection during sexual activity.
Quitting smoking, exercising regularly, losing excess weight, curtailing excessive alcohol consumption, controlling hypertension, and optimizing blood glucose levels in patients with diabetes are not only important for maintaining good health but also may improve or even prevent progression of erectile dysfunction. It is unclear if such lifestyle changes can reverse erectile dysfunction. However, lifestyle improvements may prevent progression of the erectile dysfunction. Some studies suggest that men who have made lifestyle improvements experience increased rates of success with oral medications.
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