if it had a baby it should die because you have to take care of the baby. it may have died because u weren't giving it attention or it was really hungry. there could be 100 possibilities of why it died.
That has happened to me. My tamagotchi wouldn't work. Mine just was sick of working so maybe you should do someting else with your tamagotchi. Then after a while try to send him or her back t work.