MOSFET as a switch: One or two FETs?
The first circuit that you show will work with bipolar or AC signals.  The second circuit will not block the negative input signal when it is supposed to be OFF.

Try changing your simulation input signal source (V6) to AC and look at the output,