Sodium sulphate is soluble in water but barium sulphate is sparingly soluble because
The hydration enthalpy of Na2SO4 is more than its lattice enthalpy
The lattice enthalpy of BaSO4 is more than its hydration enthalpy
If hydration enthalpy of a salt is greater than the lattice enthalpy then the salt is soluble.