Hello,
From the symptoms that you have mentioned, the first possibility that comes to my mind is gall bladder colic or biliary colic. It can be due to cholecystitis(inflammation of
gall bladder) or
gall bladder stones. I would suggest an ultrasound abdomen to confirm the diagnosis. Other possibilities are irritable bowel syndrome, hepatitis(inflammation of the liver), kidney stones, pneumonia, musculoskeletal pain, lower rib fracture and malignancy.