Like a pacemaker for the heart, nerve stimulation devices are implanted to send pulses of electricity to evoke activity in nerves throughout the body. These electrical stimulation devices have been used to treat and control many disorders, including heart disease, epilepsy, depression, and rheumatoid arthritis.