Erections are more complicated than you think. Your brain, nerves, heart, blood vessels, and a whole lot of hormones have to work together perfectly or nothing happens. It’s a lot to ask, and sometimes things break down. And while ED happens to most guys at some point in their lives, erectile dysfunction isn’t something you can just ignore and hope it goes away.
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.
Diabetes is an example of an endocrine disease that can cause a person to experience impotence. Diabetes affects the body’s ability to utilize the hormone insulin. One of the side effects associated with chronic diabetes is nerve damage. This affects penis sensations. Other complications associated with diabetes are impaired blood flow and hormone levels. Both of these factors can contribute to impotence.
The mechanisms by which testosterone plays a role in erectile function are not completely understood. A study evaluating the effect of testosterone on erections in surgically castrated rabbits and control animals, in which the rabbits’ intracavernosal pressures were compared after cavernosal nerve stimulation, determined that castrated rabbits had much lower pressures after stimulation than control rabbits did.  Notably, the pressures increased when castrated rabbits received exogenous testosterone replacement.
Stiffy Solution: Again, saying "stop being so stressed out so you can get boners again" is easier said than done — but a lot of people find sexual dysfunction to be a stronger motivator to live a healthier lifestyle than the threat of, say, a heart attack down the road; so there's a chance that this could actually be a good thing in the long run for your boo, if it helps him take his stress seriously. Relaxation techniques like yoga, exercise, meditation, tai chi, and getting adequate sleep can all lessen the impact of stress on your body (and your dong).
Despite the accumulation of a substantial body of scientific information about erectile dysfunction, large segments of the public -- as well as the health professions -- remain relatively uninformed, or -- even worse -- misinformed, about much of what is known. This lack of information, added to a pervasive reluctance of physicians to deal candidly with sexual matters, has resulted in patients being denied the benefits of treatment for their sexual concerns. Although they might wish doctors would ask them questions about their sexual lives, patients, for their part, are too often inhibited from initiating such discussions themselves. Improving both public and professional knowledge about erectile dysfunction will serve to remove those barriers and will foster more open communication and more effective treatment of this condition.
Concerns that use of pornography can cause erectile dysfunction have not been substantiated in epidemiological studies according to a 2015 literature review. However, another review and case studies article maintains that use of pornography does indeed cause erectile dysfunction, and critiques the previously described literature review.
The U.S. FDA (Food and Drug Administration) has a list of 29 OTC products that claim to treat erectile dysfunction. Patients should avoid these because many contain harmful ingredients. Other natural or herbal remedies such as DHEA, L-arginine, ginseng, and yohimbe are supplements that have been used but have not been proven safe and effective according to some researchers. Before using such compounds, individuals should consult their doctor. According to some experts, acupuncture does not effectively treat erectile dysfunction. Other home remedies for reducing ED symptoms include diet changes such as eating blueberries and citrus fruits and drinking red wine.
Erection is a vascular event. The penis becomes rigid when blood flow to the corpora cavernosa increases sixfold and venous outflow is physiologically impeded. Penile perfusion is governed by three organ systems—the neurologic, circulatory, and endocrinologic systems—each necessary for potency. The neurologic system accounts for vasodilation and venoconstriction of the corporal blood vessels so that blood is shunted to the erectile tissues; the circulatory system provides adequate blood flow to the hypogastric-cavernous bed, a distal branch off the internal iliac vessels; and the endocrine system, mediated by testosterone, plays a permissive role through mechanisms that have yet to be elucidated.
The Latin term impotentia coeundi describes simple inability to insert the penis into the vagina; it is now mostly replaced by more precise terms, such as erectile dysfunction (ED). The study of erectile dysfunction within medicine is covered by andrology, a sub-field within urology. Research indicates that erectile dysfunction is common, and it is suggested that approximately 40% of males with erectile dysfunction or impotence, at least occasionally. The condition is also on occasion called phallic impotence. Its antonym or opposite condition is priapism.
The dorsal artery provides for engorgement of the glans during erection, whereas the bulbourethral artery supplies the bulb and the corpus spongiosum. The cavernous artery effects tumescence of the corpus cavernosum and thus is principally responsible for erection. The cavernous artery gives off many helicine arteries, which supply the trabecular erectile tissue and the sinusoids. These helicine arteries are contracted and tortuous in the flaccid state and become dilated and straight during erection. 
You’ve probably heard of Viagra, but it’s not the only pill for ED. This class of drugs also includes Cialis, Levitra, Staxyn, and Stendra. All work by improving blood flow to the penis during arousal. They're generally taken 30-60 minutes before sexual activity and should not be used more than once a day. Cialis can be taken up to 36 hours before sexual activity and also comes in a lower, daily dose. Staxyn dissolves in the mouth. All require an OK from your doctor first for safety.