my cats also encountered this before. Mostly because of the bad mood (after consult doctor), or the weather.
you can try putting a cube of ice (from your freezer) into his/her bowl (or drinking tank), play it with your finger to draw his/her attention. He/she would smell / play it. It makes him/her drinking. Moreover cool water is more attractive than room temperature.
Try it.