Water is a polar molecule, meaning that it can dissolve almost anything.
A molecule is polar when there is a asymmetrical distribution of electrons around it.
The term like disolves like means that polar molecules only dissolves polar and not non-polar. Hence, non polar molecules are unable to dissolve in water.
For instace, butter, a non polar molecule is unable to dissolve in water.
Hence, an easy way of finding out whether a substance is polar or non-polar is to see how well it dissolves in water.