GO:0017174:   glycine N-methyltransferase activity
Catalysis of the reaction: S-adenosyl-L-methionine + glycine = S-adenosyl-L-homocysteine + sarcosine.