did you swap everything over? make sure you didnt crack the immobliser chip (cant see it stopping locking working but never know)
in that case ide try recoding it, think its something along the lines of put one key in the ignition and lock the doors but im sure someone who knows for definate will be along shortly, in the mean time have a google, sure there will be something on vwvotex or ukmkivs or here