In all seriousness, maybe you aren't as attracted to her as you think

.
I assume you must be an older bruh, so it could be your age starting to affect your performance and/or ability to concentrate when it's time to have sex, or sadly, maybe you're subconsciously scared or nervous of the P. It happens to many men and women; they're called “asexual”.
Y'know, sex isn't just physical; more than anything, it's mental. It's hard to have sex if you're not in it, mentally speaking, for whatever reason that may be. Clearly, your mind wasn't in it as much as you may be telling yourself.
The scenery could've been off, maybe you need role play, dirty talk, etc, to get you going. If all else fails, it might be time to invest in some medication, y'know what it's called, Bluechew, and shyt like that. Another thing, generally, and hypothetically speaking, all that heavy drinking and drugging could affect a person's ability in the bedroom.