Myocarditis is an inflammation of the heart muscle called myocardium, the middle layer of the heart wall. Myocarditis is usually caused by a viral infection. Signs and symptoms of myocarditis include chest pain, heart failure and abnormal heart rhythms.