Typically that wire is green. Have the truck off, wire off, then turn the key on, note where the gauge is, then apply the wire while the engine is in "run". (doesn't need to be running) If you get no movement, it's likely something in the gauge wiring or the gauge.
Does it have the right connector on it for that "nailhead" on the sender?