Some men report being helped by an oral medication called yohimbine, which comes from the bark of a tree that grows in India and Africa. This drug, which needs to be taken every day, has been reported to help about 20 to 25 percent of the men taking it. A relatively new but widely used oral medication called Viagra requires a careful medical evaluation by your doctor.
Diabetes is one of the most common causes of ED. Chronically high blood sugar levels can result in nerve damage that affects your body’s ability to translate pleasurable sexual stimulation into an erection. Diabetes can also lead to issues with circulation, which reduces blood flow to the penis and makes it more difficult to keep an erection that is hard enough for intercourse.
What’s important to take away from this is that, because erections can occur throughout the day for no reason, erectile dysfunction can be difficult to diagnose. Some men achieve erections for no reason, yet when provided with stimuli, they aren’t able to. Some men, on the other hand, only get aroused when directly stimulated. This means that healthcare professionals need to take into account many variables prior to diagnosing and treating erectile dysfunction.
Another study compared the response of surgically and medically castrated rabbits to vardenafil with that of control rabbits.  Castrated rabbits did not respond to vardenafil, whereas noncastrated rabbits did respond appropriately. This result suggests that a minimum amount of testosterone is necessary for PDE5 inhibitors to produce an erection.
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.
Radical prostatectomy for the treatment of prostate cancer poses a significant risk of ED. A number of factors are associated with the chance of preserving erectile function. If both nerves that course on the lateral edges of the prostate can be saved, the chance of maintaining erectile function is reasonable. The odds depend on the age of the patient. Men younger than 60 years have a 75-80% chance of preserving potency, but men older than 70 years have only a 10-15% chance.
ED may occur with or without other sexual dysfunction, including decreased libido (decreased interest in sexual activity), orgasmic dysfunction (troubles achieving an orgasm/climax), and ejaculatory dysfunction (problems with the fluid released during sex, including lack of ejaculation [anejaculation], small volume ejaculate, ejaculation that occurs too quickly [premature ejaculation], ejaculate that goes backward into the bladder [retrograde ejaculation] and pain with ejaculation).
Endocrine evaluation consisting of a morning serum testosterone is generally indicated. Measurement of serum prolactin may be indicated. A low testosterone level merits repeat measurement together with assessment of luteinizing hormone (LH), follicle-stimulating hormone (FSH), and prolactin levels. Other tests may be helpful in excluding unrecognized systemic disease and include a complete blood count, urinalysis, creatinine, lipid profile, fasting blood sugar, and thyroid function studies.
Associated morbidity may include various other male sexual dysfunctions, such as premature (early) ejaculation and male hypoactive sexual desire disorder. The NHSLS found that 28.5% of men aged 18-59 years reported premature ejaculation, and 15.8% lacked sexual interest during the past year. An additional 17% reported anxiety about sexual performance, and 8.1% had a lack of pleasure in sex. 
You're right that this should be a last resort, but Paduch also agrees that sometimes a little confidence can help you get back on track. The thing is, you should only take an ED medicine if it's prescribed by your doctor (otherwise you'll miss out on the important medical info you should know before you take it). Another option is an l-arginine supplement, which can increase nitric oxide and blood flow.
Erections are neurovascular events, meaning that nerves and blood vessels (arteries and veins) are involved in the process of an erection and all must work properly to develop a hard erection that lasts long enough. Erection begins with sexual stimulation. Sexual stimulation can be tactile (for example, by a partner touching the penis or by masturbation) or mental (for example, by having sexual fantasies, viewing porn). Sexual stimulation or sexual arousal causes the nerves going to the penis to release a chemical, nitric oxide. Nitric oxide increases the production of another chemical, cyclic GMP (cGMP), in the muscle of the corpora cavernosa. The cGMP causes the muscles of the corpora cavernosa to relax, and this allows more blood to flow into the penis. The incoming blood fills the corpora cavernosa, making the penis expand.
The prostaglandin E1 is contained in a small suppository located at the tip of an applicator. You should urinate first as this lubricates the urethra and makes it easier to insert the applicator into the tip of the urethra (urethral meatus, the opening at the tip of the penis that urine passes through). A patient can release the suppository into urethra by gently wiggling the applicator and pressing the button at the end. Rubbing the penis allows the suppository to dissolve, and the prostaglandin is absorbed through the tissue of the urethra into the penis. It takes 15 to 30 minutes for this occur. Once into the penis, the prostaglandin causes increased blood flow into the penis. The prostaglandin can be present in the ejaculate, and thus doctors recommend that men use a condom when having intercourse with a pregnant partner. Men may need to use a condom if vaginal irritation occurs in female partner.
Medications: Many common medicines produce erectile dysfunction as a side effect. Medicines that can cause erectile dysfunction include many used to treat high blood pressure, antihistamines, antidepressants, tranquilizers, and appetite suppressants. Examples of common medicines that can cause erectile dysfunction include propranolol (Inderal) or other beta-blockers, hydrochlorothiazide, digoxin (Lanoxin), amitriptyline (Elavil), famotidine (Pepcid), cimetidine (Tagamet), metoclopramide (Reglan), naproxen, indomethacin (Indocin), lithium (Eskalith, Lithobid), verapamil (Calan, Verelan, Isoptin), phenytoin (Dilantin), gemfibrozil (Lopid), amphetamine/dextroamphetamine (Adderall), and phentermine. Prostate cancer medications that lower testosterone levels such as leuprolide (Lupron) may affect erectile function. Some chemotherapies such as cyclophosphamide (Cytoxan) may affect erectile function.
Men with a rare heart condition known as long QT syndrome should not take vardenafil since this may lead to abnormal heart rhythms. The QT interval is the time it takes for the heart's muscle to recover after it has contracted. An electrocardiogram (EKG) measures the QT interval. Some people have longer than normal QT intervals, and they may develop potentially life-threatening abnormal heart rhythms, especially when given certain medications. Men with a family history of long QT syndrome should not take vardenafil, as it is possible to inherit long QT syndrome. Furthermore, vardenafil is not recommended for men who are taking medications that can affect the QT interval such as quinidine (Quinaglute, Quinidex), procainamide (Pronestyl, Procan-SR, Procanbid), amiodarone (Cordarone), and sotalol (Betapace).
Surgery of the penile venous system, generally involving venous ligation, has been reported to be effective in patients who have been demonstrated to have venous leakage. However, the tests necessary to establish this diagnosis have been incompletely validated; therefore, it is difficult to select patients who will have a predictably good outcome. Moreover, decreased effectiveness of this approach has been reported as longer term followups have been obtained. This has tempered enthusiasm for these procedures, which are probably therefore best done in an investigational setting in medical centers by surgeons experienced in these procedures and their evaluation.