A heart attack is a medical emergency. If someone appears to be having a heart attack, call 911 or your local medical emergency number. Heart failure(or congestive heart failure) — When a person's heart function becomes weaker, the heart can't pump enough blood to the body. This usually happens slowly over time.