The heart is a muscle, and all muscles require oxygen-rich blood to function properly. A heart attack occurs when there is a blockage of the coronary arteries. It is not the same as a cardiac arrest. A cardiac arrest occurs when the heart stops beating, whereas a heart attack occurs when the heart continues to beat despite disruption in the blood flow to the heart.