The heart consists of four chambers and valves that ensure blood flows in one direction, preventing backflow. These valves are designed like flaps, allowing efficient circulation. The rhythm of the heart is regulated by pacemaker cells located in the sinoatrial node, which can be influenced by the brain and other factors, ensuring a consistent heartbeat throughout the body.