the information given you is very incomplete, but it is mostly looks like you some problem in your kidney
or may be even testes. both the problems have similar presentation, since you have mentioned that then have done all the scan and x ray i am assuming that there is no renal stones
. but it is possible to miss out testicular problems. i suggest you go to a nephrologist
and get your scans done at a good place, they will also do some test on urine to find out if you have some problem of kidney. kindly give them every detail of what all health problems you have had, if you have suffered any fever with swelling of cheeks which could be mumps
leading to orchitis
hope they diagnose your problem if not please give more detail on this website next time.