Power N-Channel Mosfet as a Switch
Impossible.
You have to use one more PNP transistor for that.
You cannot turn N-MOSFET only by NPN transistor without inverting input signal.

This is modified circuit that should work.







simulate this circuit &ndash; Schematic created using CircuitLab

When the input signal is 0V: Q2 is off, base of Q1 is pulled high, so Q1 is off. And M1 is pulled low, so mosfet is off.

When the input signal is 5V: Q2 is on, base of Q1 is pulled low, so Q1 is on. And M1 is pulled high, so mosfet is on.

Problem with your original circuit is that Q31 can be on only when emitter has lower voltage than base. But when you send 5V to input, Q31 is open and emitter is pulled to 12V and so turns Q31 off. Your circuit cannot work.