Learning to exert conscious voluntary control over automatic body functions such as respiration, heartbeat, and skin temperature is called gate control.
The gate control theory explains why thoughts and emotions influence pain perception.
It suggests that the spinal cord contains a neurological 'gate' that controls pain signals to the brain.