Sometimes a cold virus can give you a change of taste and / or a sore tongue, but this is really something you ought to discuss with your dentist because it could be due to gum problems or your teeth.
We have little 'tonsils' down the sides of our tongue which react to viruses which can give us sore tongues, or sometimes it can be due to a food intolerance.