Erectile dysfunction is not the end of your sex life. You can take the following measures to help your partner with ED:
Make him stress-free and try to make him relax
Communicate with your partner as much as possible and look for the possible ways
Encourage your partner for consulting a doctor. Ask him to be open to his doctor and do not hesitate in mentioning his sexual issues.
Find some alternatives for satisfying the sexual needs of your partner
Encourage him to exercise regularly and avoid unhealthy habits
Help your partner in managing his psychological issues and encourage him to visit a psychological counselor