Upper right abdominal pain
with nausea is indicative of cholecystitis
i.e gall bladder inflammation
I would suggest you to consult physician for ultrasound gall bladder. In that case, you will need to take antibiotics.
Even trauma to ribs can cause pain, but in your case this history is not present.
Even kidney or gall bladder stone
can produce such pain.
Sometimes it can gas problem.
In females two more possibilities are ovarian cyst
and ectopic pregnancy.
You need to consult physician, get examine. Physician can decide about ultrasound and further treatment.
I hope I have answered your query. In case of doubt I will be happy to help you.
Dr . Neelam.