Steam is in a different state of matter, and in steam, the particles spread all around, they are not close together, and in an ice cube, the particles are very close and they vibrate. The particles are acting different because they are in a different state of matter.