The most likely causes of nails 'dying' are through a fungal infection which can cause the nails to discolour, grow thick, crumble and eventually fall off, or through an injury.
If someone has stamped on your foot, you have managed to jam your toes while playing sports or trapped a fingernail in a car door then you might find the nail falls off, usually after turning black due to bleeding that occurs under the nail.
In both cases the nail will grow back, so it isn't really anything to worry about, be aware that trying to cure dead matter is a bit of a fool's errand so perhaps it's best just to let the nail run its course and grow back.
With a fungal infection however, there is a good likelihood that when the nail grows back it will have similar issues to before until you address the underlying issue. You should see a doctor or chiropodist about this as they may be able to give you some sort of foot bath or lotion to use in clearing up the infection. For injuries I can only suggest steel capped boots and padded socks!
If someone has stamped on your foot, you have managed to jam your toes while playing sports or trapped a fingernail in a car door then you might find the nail falls off, usually after turning black due to bleeding that occurs under the nail.
In both cases the nail will grow back, so it isn't really anything to worry about, be aware that trying to cure dead matter is a bit of a fool's errand so perhaps it's best just to let the nail run its course and grow back.
With a fungal infection however, there is a good likelihood that when the nail grows back it will have similar issues to before until you address the underlying issue. You should see a doctor or chiropodist about this as they may be able to give you some sort of foot bath or lotion to use in clearing up the infection. For injuries I can only suggest steel capped boots and padded socks!