Start with one switch
When the gap is open, an electrical signal cannot pass through.
Off.
Close the gap and the signal can pass.
On.
Try it yourself.
One switch gives us two possibilities. The real switches inside a computer look different, but this simple picture gives us the part we need.