@simrin-- I'm not an expert or anything and I understand that cardiac insufficiency is totally different from a heart attack like @anamur said, but I think that the treatments can be similar. My mom, for example, takes beta blockers regularly for her high blood pressure. This is one of the treatments for cardiac insufficiency and as I've found out recently, it helps prevent heart attacks too.
My mom took a new type of blood pressure medication last year and had unwanted side effects. She basically had a panic attack and we called an ambulance to take her to the hospital. When the medical personnel came, she told them that she thinks she's having a heart attack. She also told them that she takes beta blockers.
They told my mom that beta-blockers protect against heart attack since they cause arteries to expand and that she doesn't need to worry. This was such a relief and she was able to calm down and we didn't even go to the hospital.
So the causes are different, but treatments can be similar from what I understand.