That wire should go from one of the bolts on the coil bracket to that bolt on the rocker cover, you can see on your pic that it has snapped and is now hanging loose! You'll need to replace it, get down your local scrappy pretty much all VWs should have an earth lead similar to that

Edit: Those other 2 wires you show are actually in the correct place on your engine, the 2 blue connectors bolted to the rocker cover shown in the other picture are in the wrong place

Not that it matters as long as they get a decent contact to the block or the chassis it doesn't matter where they go
