The solubility of insoluble substances can be decreased by the presence of a common ion.
Present in silver chloride are silver ions $\left( Ag ^{+}\right)$and chloride ions $\left( Cl ^{-}\right) . AgCl$ is not soluble in water.
Silver nitrate (which is soluble) has silver ion in common with silver chloride. But the concentration of the common ion is low (0.001M)
Calcium chloride (also soluble) has chloride ion in common with silver chloride. $In CaCl _{2}$ has two moles of common ion (0.02M) that decreases solubility very rapidly.
In $Na _{2} SO _{4}$ there is no common ion effect apply therefore is soluble in it.