When your heart is 'beating' what is it actually doing?

It is pumping blood .