When heated, most substances expand. There are exceptions. A very important exception is that liquid water, when heated from 0°C to 4°C, contracts. Hyperphysics contains a discussion of expansion.