(Cu)2+(aq)+(NH)3(l)+H+(aq)→((NH)4)+(aq)+(Cu)2+(aq)
In acidic solution proton coordinates with ammonia molecules to form NH4+ does not have a lone pair and hence cannot form co-ordination compounds.
Whereas in alkaline solution NH3 molecules are free to form the complex.