During a nerve impulse, sodium ions enter the axon, reversing the voltage and depolarizing the inside. This generates an action potential that travels down the axon. Potassium ions then shift the voltage negative again, returning the axon to its resting polarized state, ready to transmit another impulse if stimulated.