You should always go see a doctor when you have testicle pains. There's a host of problems that it could be and you want to rule out ones that get worse without treatment.
You should also give yourself a testicular exam, rolling your testicles between your thumb and fingers, examining them for lumps, etc.
Don't go worrying about it being something horrible, but don't wait because it could get worse.