A pacemaker is a small device that can send electrical signals to your heart. Here's who needs a pacemaker and how it works.