NH3 gas is a covalent compound hence, there are no ions present in it and it does not conduct electricity.
When NH3 gas is dissolved in water it forms an aqueous solution of ammonium hydroxide.
The ammonium hydroxide formed is a weak electrolyte because it can ionise to a small extent to form ammonium ions and hydroxide ions. These ions are mobile and hence, conduct electricity.