During a nerve impulse, sodium ions move into the axon while potassium ions move out. At rest, the axon is more negatively charged inside compared to outside. During the resting state, the axon maintains higher concentrations of sodium ions outside and potassium ions inside, with chloride ions also higher outside and organic anions inside.