You have to desensitize yourself to stimulation. One way to do this is to masturbate about an hour beforehand, achieving another orgasm shortly after that will be more difficult. If you continue to have trouble, talk to your partner about changes to the timing of your sexual routine, you may need to give them oral or manual stimulation first or after you ejaculate, etc.
Knowing about your history of ED will help your health provider learn if your problems are because of your desire for sex, erection function, ejaculation, or orgasm (climax). Some of these questions may seem private or even embarrassing. However, be assured that your doctor is a professional and your honest answers will help find the cause and best treatment for you.