Various risk factors can contribute to erectile dysfunction, including: Medical conditions, particularly diabetes or heart conditions.figure out