Heart attack and cardiac arrest are life-threatening conditions involving sudden failure of the heart to pump blood effectively. Heart attack occurs when blood flow to the heart muscle is blocked, while cardiac arrest is when the heart stops beating entirely.