Pleasure

So me and my boyfriend have had sex quite a few times and have tried a lot of positions and everything, but I just can't seem to get pleasure when he's inside of me (it's mostly just painful) only when he rubs my clit do I get any pleasure. I'd there something wrong or are we just not doing it right?