Electrical Stimulation (aka TENS unit or Transcutaneous Electrical Nerve Stimulation) uses low voltage electrical currents to decrease pain.
The electrical stimulation sends sensation signals to the brain before the pain signals get there, effectively blocking the feeling of pain. This cessation in pain helps to break the pain-spasm-pain cycle, which also helps in the healing process.