Ejaculation instead of erection

When I’m aroused I ejaculate (with no feeling) instead of getting an erection. I need help because this is seriously impacting my mental health and makes me avoid sex. It’s been going on for at least 9 years