During repolarization, $Na^{+}$ channels are closed. Actually, it occurs due to depolarization, so that no more $Na^{+}$ ions can enter the cell. After about 0.5 ms, permeability to $K^{+}$ ion increases because the build up of positive charge inside the cell opens voltage-gated $K^{+}$ channels.