(i) Glycine is present mainly as a zwitter ion. Its carboxyl group loses a proton and its amino group accepts that proton, giving a dipolar ion that is neutral overall:
H2N-CH2-COOH⇌H3N+-CH2-COO−
(ii) The zwitter ion has an acidic end (−NH3+, which can give up a proton) and a basic end (−COO−, which can take one up), so it is amphoteric: it reacts with both acids and bases.
With acid, the −COO− group takes up the added H+:
H3N+-CH2-COO−+H+⟶H3N+-CH2-COOH
With alkali, the −NH3+ group gives its proton to the added OH−:
H3N+-CH2-COO−+OH−⟶H2N-CH2-COO−+H2O

In each case the added H+ or OH− is used up by the glycine instead of staying free in solution, so the pH changes only a little. The same zwitter ion neutralises both an acid and a base.