Vaginal pains

I'm currently 30 weeks and 1 day. I am having a sharp stabbing, shocking pain shoot through the center straight up the vagina area inside. It last for about 2 seconds. Then the baby moved around and I feel now like light cramps. Has anyone else experienced this? Is this preterm labor? Or just ligament pains?