Resting-State Structure and Gating Mechanism of a Voltage-Gated Sodium Channel