How does heating or boiling a substance affect its pH?

The question is far too general for a sensible answer.

The pH of liquids change with temperature from the formula
E = Eo- 2.303*(RT/nF)log (reduced/oxidized)
A chemical change can occur which will change the pH.