You don't say which set of lights does not work.
If it is one set of the ceiling lights, may well be a shared earth, but if so, where does the other end terminate?
If the under cupboard lights are faulty, perhaps they were an after thought, and in order to avoid chasing the wall out again...