While the sodium–potassium pump continues to work, the voltage-gated sodium and calcium channels that had been closed while the cell was at resting potential are opened in response to an initial change in voltage.