Check the timer control and make sure the oven is not in the automatic cleaning cycle. Following that, you’ll want to check the common wiring, selector switch, and thermostat. Make sure the controls and selector switches are set correctly. If the range control reads push for manual, push the knob in and try your oven and broiler again. If this doesn’t help, you probably have a faulty selector switch, thermostat, thermocouple, or a wiring problem.
If there is no separate selector switch for bake or broil, most often the problem is the thermostat. There’s not really an easy way to test the selector switch, so if you think there’s a problem with this, you should call a professional appliance repair person. The thermostat should read 0 ohms when in the on position.