Erectile dysfunction (ED) and cardiovascular disease share common risk factors, like obesity, smoking, high cholesterol, high blood pressure, and lack of exercise. ED can be an early sign of heart disease because problems with blood flow affect erectile function. This is why men who experience ED should go to the doctor to get checked for heart disease.