The sodium-potassium pump moves Na⁺ and K⁺ against their concentration gradients, from where there are fewer to where there are more. That takes energy (ATP). Watch the numbers change.
During the action potential, Na⁺ rushed in and K⁺ rushed out. The sodium-potassium pump uses ATP to move them back, resetting the gradients and restoring the resting potential.
Without the pump, the gradients would eventually run down, and the axon could not fire again.
You opened and closed every channel yourself — depolarizing and repolarizing the membrane section by section, just like a real nerve impulse racing down the axon.
Note: action potentials peak at about +30 to +40 mV, depending on the type of neuron.