You need to test estradiol (preferably the sensitive assay one) (too low or too high will give you
erectile dysfunction), dht, and shbg. Also test thyroid (t3, t4, ft3, ft4, tsh, reverse t3) and adrenals (cortisol 24 hour saliva, pregnenolone, dhea or dhea-s), sugar and fasting sugar. vitamin d too low. Your problem is hormonal. after bloodwork, post your results in one of erectile dysfunction forums. many guys will help you.