Pericarditis occurs when the damaged pericardium rubs against each other causing irritation and swelling. This causes a sharp chest pain. Other causes of pericarditis include systemic inflammatory disorders, trauma (injury to the heart or chest) and health problems like kidney failure, tuberculosis or cancer.