A molecular link between activation and inactivation of sodium channels