Sudden sharp pain in hip/ pelvis laying down

Danielle

Went and layed down and felt a sharp pinching almost cramping feeling in right side of pelvis/ hip what could it be?