Atomic View of the Three States of Matter