What causes the liquid to move in a thermometer?

When the liquid in the thermometer gets warmer it expands.