in the testis can be due to torsion or epididymo orchitis
Both these conditions will be diagnosed only by Colour doppler examination of the scrotum
Get it done.
Blood in the ejaculate can be due to infection.
Please take good antibiotic and anti inflammatory drug
If you come back with Colour doppler of scrotum report,i will clarify further