Hurts to be on top

Starting having sex a few months ago. Every other position has been fine, but it's always really painful when I'm on top. I can't even get it in. Any advice?