Your doctor may recommend a cardiac MRI to check for heart muscle disorders, valve problems, congenital heart conditions, or damage from a previous heart attack.