The conductivity of a solution is determined by the concentration of ions in the solution. The more ions there are in solution, the higher the conductivity. NaOH dissociates into Na+ and OH- ions, while NH3 dissociates into NH4+ and OH- ions. The Na+ and OH- ions are both more mobile than the NH4+ ion, so NaOH has a higher conductivity than NH3.
In addition, the temperature of the solution also affects the conductivity. The higher the temperature, the more ions are in solution, which increases the conductivity.