Drinking copious amounts of alcohol can make you temporarily impotent, as in you can feel totally horny, but you just won't be able to 'get it up', so to speak. This is caused by the alcohol, and can easily happen. Sometimes it may not, other times it may. Even if you have a few drinks, you might find one day it gets to you much quicker than before. Stress is also a big factor, because if you worry about not performing, often the psychological effect can cause what you fear to happen. You end up getting so worried, that you've lost the horniness and you can't get it up. I don't really know whether this may apply to you, but it's just something else that can also affect it.
My advice is don't drink any alcohol at all, and try not to worry about performing well. Go at it with confidence knowing you're going to do well, and that boost should overpower any fear or doubts you might have about it occurring again.
However if it continues to happen even after you haven't drunk any alcohol, you might want to go to a doctor just in case, perhaps they could give you more light on the situation.
-------
and victorious in war shall be made glorious in peace.