Trapped wind or contractions

Last night I had the worst sleep ever kept waking up with lower back pain to both my hips and today I've had the same pains where I've literally been breathing through them they don't last long but I feel like I need a poo I have been to the toilet and nothing yet also getting shooting pain now and again in my vagina what could this be need to no asap