Find the differences between two signals with an opamp
But when I simulate it with the circuit above it only acts like a
buffer

Try adding the resistor in the green box below: -

You need to make the right hand op-amp a proper differential amplifier as used inside such devices as Instrumentation Amplifiers: -

Note that R3 in the above circuit is the addition I made to your schematic.