I pretty much had a very similar experience in my marriage (now divorced),
Shortly after i left my ex husband I dated someone who gave me back the confidence that had been stripped away from me over 10 years, and it didn't take long for me to realise that not only do i enjoy sex, i'm pretty damn good at it and I have needs that I have to succumb to.
I'm not with him anymore - he broke my heart and it took me a long time to get over him (no time to get over my husband, but such a long time to get over my ex after my husband) but I took a lot from that relationship personally - he gave me self-confidence in the bedroom (or any other room for that matter) to be able to see sex as an enjoyable experience.
I'm not saying jump into bed with the first person you meet, but it kinda worked for me.