The heart’s functioning is electrical activity that can be measured with an electrocardiogram (ECG). When the electrical impulse reaches a certain part of the cardiac muscle (myocardium), it causes the ventricles to contract, which is the heartbeat. Thus, heartbeat means the contraction of the ventricles, whereas ECG reflects all of the cardiac muscle’s electrical activity.