The mole is the SI unit for amount of substance: one mole is the amount of substance that contains exactly as many elementary entities — atoms, molecules, ions, or any other specified particles — as there are atoms in exactly 12 g of the carbon-12 isotope. This fixed number of entities is the Avogadro constant, per mole, and it is the same number no matter what is being counted: one mole of electrons, one mole of water molecules and one mole of sodium atoms all contain entities.
To connect this particle count to a mass that can be weighed, chemistry defines the atomic mass unit (u) as exactly one-twelfth the mass of a single carbon-12 atom. Because most elements occur naturally as a mixture of isotopes, the atomic mass quoted for an element is really an average atomic mass, weighted by each isotope's natural abundance — carbon's atomic mass of 12.011 u reflects the small natural share of heavier and alongside the dominant . Molecular mass is the sum of the atomic masses of every atom in one molecule (water, , is u); for ionic solids such as , which do not exist as discrete molecules, this same sum is called the formula mass instead.
Molar mass is the mass in grams of one mole of a substance, and it is numerically equal to the atomic, molecular or formula mass expressed in u — so water's molar mass is 18.02 grams per mole and 's is 58.5 grams per mole. This equivalence is what makes the mole useful at the bench: it converts a particle count into a mass on a balance through (given mass over molar mass) and (number of entities over Avogadro's number). Gases add a third route: at STP, one mole of any ideal gas occupies close to the same fixed molar volume, so also holds.
The recurring NEET trap is assuming that equal masses of two different substances must contain equal numbers of particles. They don't — Avogadro's law guarantees equal numbers of particles only for equal moles, and mass converts to moles only after dividing by molar mass. So equal masses of, say, and contain wildly different numbers of molecules, because their molar masses differ; any question comparing number of molecules or number of atoms between two given masses must be routed through first, and only then multiplied by — never compared as masses directly.