Electrical impulses block the pain messages sent by damaged nerves. These treatments include TENS (transcutaneous electrical nerve stimulation) and repetitive transcranial magnetic stimulation (rTMS.) Both are painless. Some other electrical stimulation approaches are more complicated and require surgery.