from history it seems that you might be having fracture
on back of your lower ribs and heavy strain on leg muscles giving rise to this problem.
Go to ER and get examined.
May require x-ray of ribs and leg to rule out fracture.
Meanwhile take some analgesic
medicine for having pain.
Ok and take care.