One suspect would be a chafed/broken wire, most likely where it passes through the flexible conduit from boot lid to body. Probably the Brown wire from the Boot Ajar switch to the General Electronic Module, 23 way, Grey plug, Pin No 22. The GEM is the module above the accelerator pedal with five 23 way plugs. You can remove the plug to do a continuity check.