Which layer of the heart allows it to act as a pump?