Really sharp pain

I had a really bad sharp pain in my pelvic area to where it felt like someone was stabbing me there but it only happened 4 time in one day and a week a couple days later I get an actual period I'm so confused cause I never had that happen before