Is it running, making chain noise, was other work done recently, when was the last oil change? Hopefully you have a vagcom, and a voltmeter. You have codes for both sensors (g163 and g28) thats not a good sign. If you ignore the evap codes for now the common thread for the other codes would be the 220 ground and the intermittent codes could indicate a bad connection or failing sensor. The 220 ground is the brown wire right next to the ecu but that would most likely throw knock sensor codes as well. Start by using your volt meter checking the 1 and 3 pins on the cam sensor/s for a voltage in the range of 11 to 12 volts (switch on engine off). I think the g163 and the g40 cam sensors are the same. If the voltage is ok then probe from the sensors to the J220 on the ecu. To the right side of the battery. If you look close at the connector you will see indicator numbers on the connector. The number one pin on the g40 and the g163 both go to the number 98 pin on the 220 connector, so using your continuity tester test both #1 pins to 98. Then test the #2 on the g40 to the 87 on the J220, and the #2 on the g163 to the 86 on the J220. If the voltage and continuity test okay then just replace them both. If you have a vag com check you timing and post some engine data so we can look at it. Timing, load, temp, fuel trim, rpm... With out some data we are just guessing
Sent from my SPH-L900 using Tapatalk