An extension cord should never be used to power a pump of a swimming pool. You can't provide a normal extension cord for a pool pump because it requires a lot of power. You would need either a #12-gauge wire or a #10-gauge wire.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.