Why do some substances dissolve in water and others do not?
A good rule of thumb is "like dissolves like". Water molecules are polar, meaning they have a slightly positive end and a slightly negative end. Polar substances and ionic compounds tend to dissolve in water, while non-polar substances usually do not.
What happens: 1) Table salt is an ionic compound. Water molecules surround the sodium and chloride ions and pull them apart, so the salt dissolves. 2) Sugar dissolves because its molecules can form hydrogen bonds with water. 3) Oil is made of non-polar molecules. They are not attracted to water molecules, so oil and water separate. 4) Temperature also matters. Many solids dissolve better in warmer water, while gases usually dissolve better in colder water.
There are exceptions, so use the rule as a starting point rather than a guarantee.
What other substances have you noticed dissolving, or not dissolving, in water?