A fish cannot come back to life if it has died when out of water. It probably wasn't dead if you have had a fish come back to life. When out of water, the lack of oxygen will cause a fish to become very still, using up as little oxygen as possible from what is stored in its blood. This stillness can make a fish appear dead, and it will spring back to life when put back into the water.