Pain during intercourse

I was experiencing moderate to severe pain during intercourse for a few days and refrained from sex for about a week and a half. Once trying Again it was still there? Nothing like this has ever happened before