It could be overheating if your pump doesn't turn on. If you want to avoid overheating, try running the pump during the night. Check the bottom vent of the motor to make sure there is no obstruction to the fan. You will have to replace the pool pump if the problem persists.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.