A common and important cause of ED is vasculogenic. Many men with ED have comorbid conditions such as hyperlipidemia, hypercholesterolemia, tobacco abuse, diabetes mellitus, or coronary artery disease (CAD).  The Princeton III Consensus recommends screening men who present with ED for cardiovascular risk factors; ED may be the earliest presentation of atherosclerosis and vascular disease. 
In this study, ED proceeded CVD in almost 70% of cases. Similarly, many men with ED have been found to have pre-existing CVD. A study by Vlachopoulos et al evaluated the incidence of asymptomatic CVD in 50 men with ED.22 These authors found that 19% of men with ED had asymptomatic CVD. Similarly, Mulhall and colleagues found that 20% of men presenting with ED and vascular insufficiency on penile duplex had asymptomatic CVD.23
Common medical conditions such as diabetes, heart disease, and high blood pressure are associated with an increased risk of developing erectile dysfunction. Thus, optimal management of these diseases may help prevent the development or progression of erectile dysfunction. Lifestyle modifications to improve vascular function, including smoking cessation, losing weight if overweight, and exercising regularly, may be helpful.
A vacuum erection device helps draw blood into the penis by applying negative pressure. This type of device is sometimes referred to as penis pump and may be used just prior to sexual intercourse. Several types of FDA approved vacuum therapy devices are available under prescription. When pharmacological methods fail, a purpose-designed external vacuum pump can be used to attain erection, with a separate compression ring fitted to the base of the penis to maintain it. These pumps should be distinguished from other penis pumps (supplied without compression rings) which, rather than being used for temporary treatment of impotence, are claimed to increase penis length if used frequently, or vibrate as an aid to masturbation. More drastically, inflatable or rigid penile implants may be fitted surgically.
Look into natural remedies. If you're not interested in drugs and devices, see a homeopathic practitioner who can advise you as to what natural remedies might help manage your ED. While no studies have been conducted to prove that these remedies work for everyone, some men have found that acupuncture, herbal medicines, and "herbal Viagra" can be useful.
Modern drug therapy for ED made a significant advance in 1983, when British physiologist Giles Brindley dropped his trousers and demonstrated to a shocked Urodynamics Society audience his papaverine-induced erection. The drug Brindley injected into his penis was a non-specific vasodilator, an alpha-blocking agent, and the mechanism of action was clearly corporal smooth muscle relaxation. The effect that Brindley discovered established the fundamentals for the later development of specific, safe, and orally effective drug therapies.[better source needed][better source needed]
Alprostadil (also known as prostaglandin E1 [PGE1]) is the prominent known smooth-muscle dilator of the corpus cavernosum. Its mechanism of action is believed to be the promotion of intracellular accumulation of cyclic adenosine monophosphate, thereby causing decreased intracellular accumulation of calcium and resulting smooth muscle relaxation. Alprostadil can be delivered to the erectile tissue either via an intraurethral suppository that is massaged and then absorbed across the corpus spongiosum of the urethra to the corpora cavernosa, or directly injected into the corpora cavernosa. When administered urethrally, doses are substantially higher than when directly injected (typical dosing is 500 mcg to 1 mg intraurethral compared with 2.5 mcg to 20 mcg intracavernosal).
A physical exam checks your total health. Examination focusing on your genitals (penis and testicles) is often done to check for ED. Based on your age and risk factors, the exam may also focus on your heart and blood system: heart, peripheral pulses and blood pressure. Based on your age and family history your doctor may do a rectal exam to check the prostate. These tests are not painful. Most patients do not need a lot of testing before starting treatment.