In the first, "it" could be anything. It could be an elephant whose tongue doesn't work. We don't know what "it" is, but whatever it is, it is unable to discern the taste of anything it eats.
In the second, "it" could still be anything, but the sentence means that it doesn't have a taste. It has no flavour. If you ate it, you would taste nothing.