How does aqueous ammonia or hydrazine hydrate increase pH?

Bases, with partial negative charges and overshielded nuclei, grab protòns from watter. In azo molecules, lone elèctronic pairs on the nitrogen are these negative ends. ammonia: H3N + H2O → H4N+ + HO− hydrazine hydrate: H2NNH2·nH2O + H2O → H2NHNH2+ + n H2O + HO−