The location of the pain is not precise enough to provide a definitive diagnosis. If the pain is located in the back it might originate from the muscles close to the spine or from kidney-related issues.
Kidney stones might cause pain in the lumbar area (where the kidneys are located), but this pain irradiates around the waist to the front and down (towards the penis).
Pain in the lower right quadrant of the abdomen on the front side might be caused by inflammation of the appendix (part of the large intestine). This is a serious condition and needs immediate medical care. The pain might also be caused by impaction of the intestine in the inguinal canal. In that case, the inguinal canal is not wide enough for the intestine to come out and create a hernia, but is enough to impact and cause pain. The impaction is temporary and the intestine can be easily brought back in its original position. The pain increases when the person coughs or defecates.
You might want to visit gastroenterohepatologist (specialist for the digestive system) for a physical examination, hormonal laboratory tests and ultrasound scan. If needed, you might be referred to an abdominal surgeon.