The intermolecular attraction between the molecules decide whether the given substances are solid, liquid or gas. Strongest intermolecular force of attraction tells it as solid. Medium will lead to liquid and lesser attraction leads to gas.
Solids has definite shape and size. Liquids have only volume no shape. Gas has neither volume nor shape