Thanks for posting query.
You have probably urinary tract infection
which leads to infection of penis and testis.
Please do urine routine and culture sensitivity test.
Start antibiotics, plenty of water, citralka syrup, and if needed then a pain killer (NSAID
Consult your physician for further opinion.
Wish you a speedy recovery
Dr Sourav Ganguly.