What is the function of the heart in the circulatory system?