In simple words we can say that electrical stimuli generated from the SN node, respond heart to keep beating.
The sinoatrial node (SN node) is the heart’s pacemaker. It is located in the right atrium where signals originate and travel to both atria and then through the atrioventricular node (AV node) and down to both ventricles. The atrioventricular node provides a delay so that the atria may contract before the ventricles - continually pushing the blood in the correct direction.