The endocardium is the inner lining of the heart. The heart pumps blood to the lungs and to the rest of the body.