LTspice simulation doesn't agree with predicted transfer function
You have supplied the opamp with a +9 V rail only, then given it a 9 V input when it has -2.7x gain. It will not be able to drive the output negative.
To get things working

Supply the opamp with +/- 15 Volts.

Reduce your input signal to 1 V amplitude.


Then play with the amplifier supply and signal amplitude while you explore what input common mode range and output swing means for that opamp. Hint, it's not a rail-to-rail opamp.