The answer is the gate control theory of pain. This declares that non-painful involvement ends the "gates" to excruciating input, which stops pain feeling from going to the central nervous system. So, stimulation by non-noxious contribution is capable to overpower pain.