The circulatory system uses the heart to pump blood throughout the body via blood vessels. The heart has four chambers - two upper atria and two lower ventricles - which work together to circulate blood in two loops. Valves between the chambers prevent backflow of blood. During each heartbeat, the atria contract together then the ventricles contract to pump blood out of the heart.