why do the different states of matter behave differently?