Do you want a selected digital output to follow a digital input signal?
Then demultiplexer is what you want, such as 74HC154
If you want to selected digital input to be fed to an output, then a multiplexer is what you want, such as 74HC150, altho they are not around anymore.
If you want an analog input/out to connect to a selected input/output, then an analog switch is what you want, such as DG406
If you wanted to read the state of 10 switches for example, a part like cd74hc4067 would be good. Connect the swithces to a pin and Gnd. Connect the common to something like an Arduino input with its internal pullup enabled.
Then read the inputs one at a time - switches connected to Gnd would read low, switches that were open would read high. Thus 4 pins to select the switch, one input pin, to read 16 inputs.
Alternately two shift-in registers could do the same, and only use 3 pins, altho each input to the shift register would need its own pullup resistor. cd74HC165 for example