Sequential logic circuits use a clock signal to control the timing of state changes in memory elements like flip-flops. A master-slave JK flip-flop allows both the J and K inputs to be simultaneously 1, toggling the output. When this occurs, the master section is reset if the clock is 1, and set if the clock is 0, preventing unstable oscillations between circuits.