Why does your dome light not come on when the door is ajar the switch is in the correct position for the door?

The bulb could be blown.