What is it that if you give it food it lives but it you give it water it dies?

The answer to this riddle is fire. Fire consumes fuel or food to sustain itself and continue burning. However, pouring water on fire can extinguish it, causing it to "die."