Controlling the lasing without inversion via external magnetic field