What two types of molecules are responsible for the signal in MRI?

Water and fat molecules.