--For Wernicke's Encephalopathy, it's due to a problem of phosphorylated sugars not being able to leave the cell, causing a pulling of water into the cell and dying.
Transketolase and transaldolase are the enzyme used to remove these sugars, and require thiamine as a cofactor. If one enzyme is missing, the other will take over. This does not occur in Wernicke's area of the brain (posterior temporal lobe), where Wernicke's area only uses transketolase. So if you are an alcoholic who does not have thiamine and does not have his transketolase functioning properly, when given glucose, he will entire the pentose pathway and those cells will swell. This is the cause of Wernicke's encephalopathy.
--Also something related to this, transketolase is needed to go from ribose 5 phosphate (in the pentose pathway) to fructose 6 phosphate (in glycolysis)
--Wernicke Korsakoff syndrome is due to a problem with mamillary bodies, and you have a problem moving short term memory to long term memory
--Beriberi means the heart has given out, and caused dilation. If you have "dry" beriberi, it occurs until you have heart failure. If you have "wet" beriberi, the disease has gotten even worse and fluid is pouring into the lungs. Wet will also present with massive ventricular dilation.