Lives show how many attempts you have to beat a level. You can have a maximum of 5 lives, and you lose one life each time you fail to beat a level.
How do lives refill?
One life is restored every 30 minutes until you reach the maximum of 5 lives.
Where can I see my lives?
Look at the heart-shaped icon on the home screen. The number on the icon shows how many lives you currently have.