What is a TENS unit and does it work?

TENS - Image of a lightning bolt against a dark blue sky