There could be a number of factors. But, getting old is no fun for anyone and is humbling to us all.
If you're only gauging erection frequency/quality and not actual libido, then any of the available PDE-5 inhibitors should help you.
did they also test for cortisol on your panel? cortisol...