@carolinejames,
Low coolant levels, failed thermostat, belt slipping on water pump pulley, bad connection to fan if you have an electric fan. Probably a few other possibilities.
If it's overheating bad enough to cause engine shutdown, you could damage the engine if you keep running it with out repairs.