What is a difference between gas and liquid and solid on a molecular level?

IB