Depending on the year, it may need a new key. Newer cars are onece coded only.
Sounds like the chip is damaged. Mk4 chips are a sort of glass type and they are usually bonded in. May need a new key.
You cant code a key with vagcom unless you have an SKC