Sex going wrong??

Mel
I'm sorta new to sex, I've been with my current boyfriend for 2 1/2 years, I don't really like having sex because it doesn't feel as good? He's the one I lost my virginity to and him to me so I feel like we both don't really know how to correctly do it because it hurts me (not always, sometimes it does feel good) Any tips? Maybe it's not going in right? or idk?? Like personally (and honestly) it feels better when he plays with me it's more pleasuring than sex. But he seems to enjoy having sex.