Needs a VCDS scan, especially module 46-convenience.

I have had a remote fail, even with a flashing light. When you get VCDS on it, you can try resync it to your CCM.

Could be a faulty door/boot/bonnet lock module too.