They may have no effect, increase or decrease pH. Metabolism of carbohydrates commonly used in media typically lowers pH with production of organic acids,
Article Carbon Source Influence on Extracellular pH Changes along Ba...
Depends on the composition of the media and the type of contamination. The increasing pH is probably due to amino acid catabolism (often glutamine/glutamate) releasing ammonia.