Cardiac arrest and heart attacks are two different problems with the same organ. During a heart attack, the victim is often awake and may or may not be in pain. A myocardial infarction (the medical term for a heart attack) happens when part of the blood supply to the heart is blocked or reduced. However, the heart continues pumping blood throughout the body.