The temperature is controlled by moving the testicles closer to the abdomen when they are too cold, and away when too hot. This is done by muscles contracting or relaxing. This lifts and lowers the testicles inside the scrotum. The scrotum will usually tighten during erection. The testicles can also be lifted by tightening the anus and pelvic muscles.