Yes, lack of sexual attraction to your partner may be one of the causes of ED, but it is the least common cause. Mostly, ED in males is caused due to some physical or psychological issues.