One thing hat I've realized that's helped me a lot with getting harder erections is masturbating while taking a hot bath. It's not by any means a cure, but the soothing and warm water makes it feel like blood gets to my penis much easier and stays much longer!