Erectile dysfunction or ED (It used to be called impotence) is the inability to achieve or sustain an erection suitable for sexual intercourse. Problems with erections may stem from medications, chronic illnesses, poor blood flow to the penis, drinking too much alcohol, or being too tired. Erectile dysfunction can occur at any age, but it is more common in men older than 75.
ICI therapy often produces a reliable erection, which comes down after 20-30 minutes or with climax. Since the ICI erection is not regulated by your penile nerves, you should not be surprised if the erection lasts after orgasm. The most common side effect of ICI therapy is a prolonged erection. Prolonged erections (>1 hour) can be reversed by a second injection (antidote) in the office.
The FDA recommends that men follow general precautions before taking a medication for ED. Men who are taking medications that contain nitrates, such as nitroglycerin, should NOT use these medications. Taking nitrates with one of these medications can lower blood pressure too much. In addition, men who take tadalafil or vardenfil should use alpha blockers with care and only as instructed by their physician, as they could result in hypotension (abnormally low blood pressure). Experts recommend that men have a complete medical history and physical examination to determine the cause of ED. Men should tell their doctor about all the medications they are taking, including over-the-counter medications.
ED occurs in up to 70% of men with MS, and MS is one of the most prevalent neurological disorders that affect the younger adult population worldwide (33-35). The mean time for SD and ED to develop is about 9 years and is rarely a presenting symptom of MS (36). Men with MS and ED may continue to have nocturnal erections, and psychogenic erections; however, this does not mean they have psychogenic ED but could be an indicator that MS involves the spinal cord (37).
You have to desensitize yourself to stimulation. One way to do this is to masturbate about an hour beforehand, achieving another orgasm shortly after that will be more difficult. If you continue to have trouble, talk to your partner about changes to the timing of your sexual routine, you may need to give them oral or manual stimulation first or after you ejaculate, etc.
Occasional successful sexual function and early morning erections do not preclude the possibility of endocrine dysfunction. Since abnormally low levels of testosterone frequently are the primary cause of impotence, it is recommended that determination of the blood level of testosterone be an integral part of the total evaluation of the impotent patient.
Normal erectile function depends on the release of NO and endothelial-dependent vasodilation of the penile arteries. The ‘artery size’ hypothesis, first described by Dr Montorsi, offers an explanation why men are more likely to develop ED before a myocardial infacrtion. It is believed that atherosclerosis affects all vascular beds equally but smaller arteries are more likely to become occluded than larger arteries.31 32 The penile arteries are 1–2 mm while the coronary arteries are 3–4 mm. Thus, the same degree of endothelial dysfunction and atherosclerosis is more likely to occlude blood flow in the penile arteries compared with the coronary arteries. The penile arteries therefore serve as a sensitive indicator for subsequent CVD. This theory is supported by the fact that ED occurs approximately 3 years prior to cardiac symptoms in virtually all patients with chronic coronary syndrome whereas patients with acute coronary syndrome have a much lower prevalence of sexual dysfunction.32
Both ED and low testosterone (hypogonadism) increase with age. The incidence of the latter is 40% in men aged 45 years and older.  Testosterone is known to be important in mood, cognition, vitality, bone health, and muscle and fat composition. It also plays a key role in sexual dysfunction (eg, low libido, poor erection quality, ejaculatory or orgasmic dysfunction, reduced spontaneous erections, or reduced sexual activity). 
A vacuum erection device is a plastic tube that slips over the penis, making a seal with the skin of the body. A pump at the other end of the tube makes a low-pressure vacuum around the erectile tissue, which results in an erection. An elastic ring is then slipped onto the base of the penis. This holds the blood in the penis (and keeps it hard) for up to 30 minutes. With proper training, 75 out of 100 men can get a working erection using a vacuum erection device.