Why would the headlights on a 1995 Mazda 929 not turn on if the parking lights work?

iT CAN BE WIRING OR BAD HEADLIGHT SWITCH.