During sleep, I felt a sore pain in my upper right side of body. The soreness was a little in the chest to primarily my right back. Please help.

It depends. We need to know more about your health. Right now i would not worry about the symptoms that you have unless they persist and are getting worse. In that case you should go see your doctor and have a complete physical examination done.