If it's a sharp pain, you might have kidney stones.
You're also describing a few symptoms of testicular cancer, which I hope it's not, for your sake. However, it's described as a dull pain.
Common symptoms of testicular cancer include:
It also could be the onset of Orchitis or Epidymo-orchitis.