NO is produced by the enzyme NO synthase (NOS).  NOS plays many roles, ranging from homeostasis to immune system regulation. To date, 3 subtypes have been identified: nNOS, iNOS, and eNOS, which are produced by the genes NOS1, NOS2, and NOS3, respectively. This nomenclature is derived from the sources of the original isolates: neuronal tissue (nNOS), immunoactivated macrophage cell lines (iNOS), and vascular endothelium (eNOS). The subtypes are not, however, limited to the tissues from which they were first isolated.
Erectile dysfunction is only one cause of sexual dysfunction. Other causes of sexual dysfunction include troubles with ejaculation, decreased libido, and troubles achieving an orgasm (climax). Some men may have premature ejaculation, which is a condition in which the entire process of arousal, erection, ejaculation, and climax occur very rapidly, often in just a few minutes or even seconds, leaving the partner unsatisfied. Premature ejaculation may accompany an erection problem such as ED but is generally treated differently. Troubles with erectile function may lead to decreased libido or interest in sex, however, many men with decreased libido have normal erectile dysfunction. Libido may be affected by psychologic factors, such as stress, anxiety, or depression but often is the result of a low testosterone (the male hormone) level.
Achieving an erection is a complicated process, requiring transmission of sensations from the genital area to the nervous system and the return of nervous impulses to the muscles and blood vessels of the penis. Anything that interferes with this interchange, such as disease or injury of the blood vessels, muscles, or nerves, can make achieving and maintaining an erection difficult. Psychological factors, such as anxiety and depression, can also interfere with erectile function. Anxiety and depression may also develop as a consequence of impotence.
Alteration of NO levels is the focus of several approaches to the treatment of ED. Inhibitors of phosphodiesterase, which primarily hydrolyze cGMP type 5, provided the basis for the development of the PDE5 inhibitors. Chen et al administered oral L-arginine and reported subjective improvement in 50 men with ED.  These supplements are readily available commercially. Reported adverse effects include nausea, diarrhea, headache, flushing, numbness, and hypotension.
Certain feelings can interfere with normal sexual function, including feeling nervous about or self-conscious about sex, feeling stressed either at home or at work, or feeling troubled in your current sexual relationship. In these cases, treatment incorporating psychological counseling with you and your sexual partner may be successful. One episode of failure, regardless of cause, may propagate further psychological distress, leading to further erectile failure.
Erectile dysfunction is the inability to develop or maintain an erection that is rigid enough to allow penetration of the vagina, and therefore functional sexual intercourse. Generally, the term erectile dysfunction is applied if this occurs frequently (75% of the time) over a significant period if time (several weeks to months). If this is the case, the term impotence may also be used.
Psychological factors — Psychological issues such as depression, anxiety, guilt or fear can sometimes cause sexual problems. At one time, these factors were thought to be the major cause of impotence. Doctors now know that physical factors cause impotence in most men with the problem. However, embarrassment or "performance anxiety" can make a physical problem worse.
High cholesterol and triglyceride levels increase the risk of cardiovascular disease. Getting your cholesterol and triglyceride levels in an optimal range will help protect your heart and blood vessels. Cholesterol management may include lifestyle interventions (diet and exercise) as well as medications to get your total cholesterol, LDL, HDL, and triglycerides in an optimal range.
ED varies in men with seizure disorders, occurring in 3% to 58% of men with epilepsy (30). The cause of ED is likely multifactorial, with neurologic, endocrine, iatrogenic, psychiatric and psychosocial factors leading to varying degrees of ED (31). ED can occur in periods surrounding active seizures (ictal) or in the periods unrelated to seizure activity (post-ictal) as well (32).
Diabetes is a well-recognized risk factor for ED. A systematic review and meta-analysis found that the prevalence of ED was 37.5% in type 1 diabetes, 66.3% in type 2 diabetes, and 52.5% in diabetes overall—a rate approximately 3.5 times higher than that in controls.  The etiology of ED in diabetic men probably involves both vascular and neurogenic mechanisms. Evidence indicates that establishing good glycemic control can minimize this risk.
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.
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.
However, a review of a United Kingdom medical record database found no evidence that the use of 5-alpha reductase inhibitors independently increase the risk for ED. In 71,849 men with benign prostatic hyperplasia (BPH), the risk of ED was not increased with the use of finasteride or dutasteride only (odds ratio [OR] 0.94), or a 5-alpha reductase inhibitor plus an alpha blocker (OR 0.92) compared with an alpha blocker only. In addition, the risk of ED was not increase in 12 346 men prescribed finasteride 1 mg for alopecia, compared with unexposed men with alopecia (OR 0.95). The risk of ED did increase with longer duration of BPH, regardless of drug exposure. 
Many factors can contribute to sexual dysfunction in older men, including physical and psychological conditions, comorbidities and the medications used to treat them. Aspects of an ageing man’s lifestyle and behaviour and androgen deficiency, most often decreasing testosterone levels, may affect sexual function as well. A study of men between the ages of 30 and 79 years showed that 24% had testosterone levels below 300 ng/dL and 5.6% had symptomatic androgen deficiency.2
Then you have to be able to make the right diagnosis. What is the basis for their erectile dysfunction? Is it psychogenic? Is it some sort of neurological or blood vessel or hormonal issue? So you have to make a diagnosis. You have to be able to make an assessment. And then only after those things are done, then you start to think about medications.
If you can't take one of these oral medications, your physician may have you try Caverject (alprostadil for injection), a hormone that you inject into your penis using a fine needle, or Muse (alprostadil urogenital), a tiny suppository that you insert into the tip of the penis. Both of these will bring on an erection within five to 15 minutes without sexual stimulation.
Herbal supplements such as ginkgo biloba, saw palmetto, and yohimbe have been touted as sexual enhancers, and some men have been tempted to try them to treat erectile dysfunction. Bennett warns, however, that none has been approved by the FDA or even shown by any reliable studies to prevent, treat, or improve erectile dysfunction. Moreover, supplements are unregulated and can have many side effects or interfere with prescribed medications you’re already taking. Don’t jeopardize your health by taking a supplement to treat erectile dysfunction without first talking with your doctor.