It goes from the fuse box to the plastic connector in the dash.
If trying a different ground didn't work, like I said, remove the gauges and make sure the connector and traces on the circuit board like in the photo I showed are good.
And if that doesn't work, then try running the long wire from the tank, and tape it against the metal part of the gauge while the car is running.
Because I guarantee that if the sender unit works good, then cutting the wire coming out of the tank, twisting it on to some 10 ft wire, and trying to touch to the back of the fuel gauge will make it work. Don't worry about the tail lights or any of the existing wiring, you need to bypass it.
That's all the advice I can give.