Thiamine is like the spark that lets the brain burn its fuel. Take it away, and the eyes, the walk and the mind all start to fail.
Wernicke's encephalopathy is caused by thiamine deficiency, most often in alcohol excess, but also with persistent vomiting or anorexia. The classic triad is ophthalmoplegia, ataxia and confusion. Treatment is urgent thiamine replacement. If it isn't treated, it can develop into Korsakoff syndrome, with amnesia and confabulation.