Erectile dysfunction can either be temporary or chronic depending on the underlying cause. Temporary cases can be caused by smoking, overweight, physical inactivity, or stress. While chronic ED can be caused by nerve damage, diabetes, heart disease, and multiple sclerosis.