An ECG records the electrical activity (depolarization and repolarization) of the cardiac muscle, as it pumps blood around the body..