Welcome to Healthcare Magic
If the right testis is painful and slightly lifted up it could be testicular torsion
and is a surgical emergency. If not very painful it could be torsion of other related structures or possible infection like epididymitis
. You need to consult your Doctor, get examined and get antibiotics. Do a urine test as well and test for STDs if you are sexually active, Drink plenty of water. Use condom to prevent from STDs.