Almost certainly a broken wire in the loom that feeds over the hinge. When the boot is open it makes contact, when closed the cable is stretched a bit and contact is broken. A first easy check is to attach a temporary supplementary earth lead to the lock mechanism and see if it all works again. If it isn't the earth find out which wire carries the supply and check that.
|