The correct answer is B. solids only.
In solids, the particles are closely packed together and locked in fixed positions, allowing them only to vibrate in place. In liquids, the particles are not locked in position and can move around each other, and in gases, the particles are far apart and move freely.