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.
If you have a question about the English language and would like to ask one of our many English teachers and language experts, please click the button below to let us know: