It seems that you are accumulating salt & water in your body on account of kidney
disease-either Nephrotic syndrome
You have not clearly mentioned about the location,type of pain,however cause could be swelling of kidneys.
Get investigations like KFT,Hemogram,urinanalysis,lipid profile
,USG kidneys,blood sugar