Well, ya need to do some troubleshooting. First off -- (and they are NOT "all the same")-- the very first question is the "year, make, and model?"
You have a voltmeter? test light?
First, dig down to the dimmer switch, and see if you have power there with the switch on. If so, you probably just found the problem---either a bad connection at the dimmer or a bad dimmer switch.
If no power there, go up to the headlight switch. You'll have to pull it out. If this is a pull type knob, you pull the SHAFT out, not the knob. Pull the switch to "on" and reach up behind and find a little metal button. Release that and pull out the knob. Then you can pull the nut off the front, and get the switch down where you can get to it.
On my old diagram, the largest black or brown wire going to the switch should be "hot." It is not fused, it comes from a splice taped up in the harness.
There is a breaker on the headlight switch that acts as a fuse, and very common for these to fail.