Atomic motion in different states of matter