Electrical issues. The heart has mechanical and electrical functions. A pacemaker is needed when the patient's heart rate or rhythm is abnormal. The most typical conditions are bradycardia (slow heart rate), tachycardia (fast heart rate) and heart block (a condition where the heart stops beating for several seconds).