Myocarditis is inflammation of the heart muscle (myocardium). The inflammation can reduce the heart's ability to pump blood. Myocarditis can cause chest pain, shortness of breath, and rapid or irregular heart rhythms (arrhythmias). Infection with a virus is one cause of myocarditis