Low temperature
A low temperature makes the model reach for the most likely word every time. Answers are safe, consistent, and repeatable, which is exactly what you want for facts, math, and code.
High temperature
A high temperature lets the model reach for less likely words. Answers get more creative and varied, and correspondingly more likely to drift into nonsense. Great for stories, useless for an answer key.