If your dog's balls are red, this can mean he has an infection.
Do not try to treat an infection yourself.
Get him to a vet. In addition to the probability of infection, a red scrotum can also be caused by an inflammation of the bladder, a scrotal hernia, or testicular torsion.