02 Ford Focus wagon The dome lights are no longer coming on when you open the car doors and although they turn on by the switch How can you fix this?

Most likely the door jamp switch is bad. You will need to replace it.