So the molecules of NaCl are held toghther by hydrogen bonds and the molecules of water are held together by hydrogen bonds.
Half right. Hydrogen bonds involve hydrogen atoms. Do you see any hydrogen atoms in NaCl? So, can NaCl be held together by hydrogen bonds? Here's a clue - is there such a thing as an NaCl
molecule?
So first you would have to break those bonds, then break the bonds between the Hydrogen and Oxygen and the bonds between Na and Cl. Am I on the right track?
Not really. Your first point of confusion seems to be regarding the definition of a molecule and what happens when one thing is dissolved in another.
Let's start with the first part: what is the definition of a molecule. Water and table salt are very different substances. Water consists of discrete molecules of H
2O that are glued together by weak forces called hydrogen bonds. This is why water is a liquid - if there were not attractive forces between water molecules, they would just go everywhere. Each molecule of course consists of three atoms (two hydrogen atoms and one oxygen atom) and these atoms are held together by covalent bonds. So the atoms are glued together by covalent bonds (in which electrons are shared between atoms) to form molecules, and molecules are glued together by weaker bonds called hydrogen bonds to form a macroscopic liquid we call the substance water. Hydrogen bonds are attractions between a hydrogen on one water molecule and an oxygen on another nearby water molecule. They are intermolecular bonds (often called intermolecular interactions to avoid confusion. Contrast this to the covalent bonds between the atoms that make up each water molecule - these are intramolecular bonds. We know the latter are stronger because heating up a glass of water causes boiling to a gas - in water vapor, the intermolecular hydrogen bond interactions are destroyed and the glue holding water molecules together disappears, but the water molecules are still water molecules. You have to use a lot more energy or expose the water to some other substances to destroy the intramolecular covalent bonds that glue together each atom of a single water molecule.
Table salt does not consist of NaCl molecules. Chlorine atoms like electrons so much more than sodium atoms do that they steal the electrons and hoard them to themselves. This is very different form the internal bonds of water molecules, where electrons are shared more evenly. Because all the chlorines end up negatively charged (extra electrons) and the sodium atoms end up positively charged (loss of electrons), they all tend to stick together in one large crystalline mass. The formula of sodium chloride is NaCl, but there's no discrete and distinguishable unit we could call a single NaCl molecule. This is what distinguishes any kind of salt. The bonds that hold all these ions together are called ionic bonds - every sodium atom is connected to nearby chloride atoms by forces of electric attraction, and vice-versa.
Having all that background, can you imagine now what happens when you dissolve salt in water? And remember, this process does not involve destroying any water molecules (to a good approximation), but it does result in disruption interactions between water molecules.