Hydrogen bonding is defined as the difference between an electronegative atom and the Hydrogen bonded electronegative atom such as Oxygen, Fluorine, Nitrogen, etc.
When the difference is found between electronegative atoms those molecules are called polar molecules.
On the other hand if there will be no difference found between the bonded atoms then such a molecule is called a nonpolar molecule.
Ether and Alcohol possess the electronegative difference so they are called polar molecules.
Water is also polar solvent.
Taking an example of Dimethyl ether, the Hydrogen atom is not bonded with the Oxygen atom rather it is bounded with a Carbon atom, Therefore Hydrogen bonding is not possible in Dimethyl ether.
But in the case of Ethyl alcohol which is an example of alcohols, the Hydrogen atom is bonded with the more electronegative atom, Thus, Hydrogen bonding can be seen in the Alcohols-containing group.