The heart has four chambers and is located in the chest cavity surrounded by a sac called the pericardium. It has three layers: an inner endocardium, a middle myocardium that is the heart muscle, and an outer epicardium. The heart pumps blood through two circuits, with the left side pumping oxygenated blood through the body and the right side pumping deoxygenated blood to the lungs.