So what do you do? If the guilt is too much, you can tell your boyfriend. It might be the only way to clear your conscience — and hopefully, if you explain the reasons why you did such a boneheaded thing, he'll understand. It will be hard and it may create drama for months to come, but my guess is that you can recover, if he's not a horribly jealous guy.
Damage to the autonomic pathways innervating the penis may eliminate "psychogenic" erection initiated by the central nervous system. Lesions of the somatic nervous pathways may impair reflexogenic erections and may interrupt tactile sensation needed to maintain psychogenic erections. Spinal cord lesions may produce varying degrees of erectile failure depending on the location and completeness of the lesions. Not only do traumatic lesions affect erectile ability, but disorders leading to peripheral neuropathy may impair neuronal innervation of the penis or of the sensory afferents. The endocrine system itself, particularly the production of androgens, appears to play a role in regulating sexual interest, and may also play a role in erectile function.