Sounds like you have bad relay in the fuse box (engine bay). Just look on the fuse cover box which relay covers your locks and headlights. There should be several identical relays in there. A quick test would be to swap with a known good relay and see if your lights and lock will be working. Replacements should be readily available in your local autoparts store.