Thermostat question

I once had an overheating problem and eventually changed the water pump , which had lost 3 or 4 blades, by internal mayhem, not corrosion.
Never figured out what caused it, never happened again.