Hello,
Welcome to ehealthforum and thanks for writing
Pain on the right side of rib cage and back which is not being relieved by hot pack could be indicative of some underlying cause as:
1)Kidney stones which may present as pain radiating to the back. For this purpose you need to get an ultrasound abdomen and kidneys done.
2)Gall bladder disease- can be stones or cholecystitis.
3)Peptic ulcer disease or Hiatal hernia. Diagnosis can be confirmed by upper GI endoscopy.
I suggest you to consult a Physician and get an ultrasound abdomen done to rule out the exact cause.
Take care!