A molecule is the smallest discrete particle of a molecular compound; has one or more shared pairs of electrons in one or more covalent bonds. Not all molecules are compounds because compounds are made up of different elements.
Example Oxygen, which is a molecule but not a compound.