The chemical reactions and pathways involving a hexose, any monosaccharide with a chain of six carbon atoms in the molecule.