Pain after sex

So, it’s come to my attention that I can’t last very long. After one or two rounds sex becomes very painful. Sometimes to the point of tears. I’m very confused about it; any advice?