The liquid in the thermometer goes up when the thermometer is heated because heating makes the alcohol molecules of the liquid move faster. The extra speed of the molecules competes with their attraction for one another and causes them to move slightly further apart.