How can I make it better?

So me and my boyfriend have had sex a few times but everytime it hurts or he can't get it in all the way. I figured since we have tried a few times now that it should start to get better but it hasn't. What am I doing wrong?