The cremaster muscle is responsible for moving your testicles up or down. It expands and contracts according to temperature by moving them further from the body when it’s warm and closer to the body when it’s cold.