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.
Psychological Causes of ED – Between 10% and 20% of ED cases have a psychological cause. Because arousal starts in the brain, psychological issues can be a significant contributing factor to erectile dysfunction. Mental health conditions like depression or anxiety can negatively impact your libido, making it more difficult for you to become aroused.
I have no idea why your boyfriend's junk is stuck in the junkyard. He's just 25, in the prime of his penis. It's fairly rare for a guy that young to go from instant erection to shy willy. One study found that just 2 percent of men experienced erectile dysfunction before the age of 40. If it's a short-term thing, it could be simple: Maybe he just needs to get more sleep or have fewer drinks.
ED usually has a multifactorial etiology. Organic, physiologic, endocrine, and psychogenic factors are involved in the ability to obtain and maintain erections. In general, ED is divided into 2 broad categories, organic and psychogenic. Although most ED was once attributed to psychological factors, pure psychogenic ED is in fact uncommon; however, many men with organic etiologies may also have an associated psychogenic component.
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.
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. 
It's definitely possible that your boner isn't cooperating because it's not really thrilled to be there. Maybe you're not sure about this partner, you're worried about pregnancy or STIs, you're not feeling comfortable with an unfamiliar hookup, or you typically need some other kind of stimulus to get in the mood. It's always worth checking in with yourself to see if one of these factors might be holding you back in bed, says Skyler. If you have a hunch that it's because you're doing something you don't want to do (or you're not doing something you do want to do) pay attention to that hunch.
CONDITIONS OF USE: The information in this database is intended to supplement, not substitute for, the expertise and judgment of healthcare professionals. The information is not intended to cover all possible uses, directions, precautions, drug interactions or adverse effects, nor should it be construed to indicate that use of a particular drug is sage, appropriate or effective for you or anyone else. A healthcare professional should be consulted before taking any drug, changing any diet or commencing or discontinuing any course of treatment.
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.