The answer comes from the list of faults with which a vehicle may not be operated. Both cases are named in a single item on it: a lighting device is missing its bulb or lens (the outer glass that spreads the light), or the bulb or lens doesn't match that type of device. In both cases the device doesn't light the way it was designed to: there is no light or it is weak, it blinds others, or it has the wrong color or beam shape. You may not drive with any of these faults