Take 1 L of solution. It contains 3 mol of NaCl and has mass 1000mL×1.25gmL−1=1250g.
Using M(NaCl)=58.5gmol−1, the solute mass is 3×58.5=175.5g. The solvent mass is therefore 1250−175.5=1074.5g=1.0745kg.
Molality is
m=mass of solvent in kgmoles of solute=1.07453=2.792molkg−1≈2.79m.
The denominator is the solvent mass, not the solution mass.