ED can be caused by a variety of health conditions, including diabetes, high blood pressure, and cardiovascular disease. There are also more ordinary factors to consider, including stress, lack of rest, anxiety, and emotional issues. Drinking alcohol can also affect your ability to maintain an erection.