it will either be:
the bonnet lock assembly (new one from ford for around £38 is best but it's a tad bit fiddly to fit)
the master lock assembly in the drivers door (get a replacement from ebay or a breakers and replace, prices range from between £20-£40 )
there are ways to check the bonnet alarm but i can't remember how just now