If you follow the Technical Links link at the top of the page, and then scroll down to the Electrical section, you'll find a PDF FJ40 schematic. It may not match yours exactly, but it's probably set up similarly. Once you have that, find the headlight section. You'll see that after the fuse there's not too much there. Just the headlight switch, the dimmer/high beam switch, and the lights themselves.
Using the schematic and a test light, start at the fuse and work your way down the wires. The colors are shown on the diagram. Once you're beyond the switch it'll have to be ON to have power on the low beam side. If you trace the wiring from one end to the other and test at each point, eventually you'll find the problem. Note that the high beam is independent of the low beam. Try testing that separately and see if they work.
Off hand, here are some possibilities:
Connectors can be a problem if they're melted or corroded. There are at least two connectors between the fuse and the headlights. One is under the dash where it goes out the firewall, the other is just below the steering column where it goes to the turn signal stalk.
Wires can be burned in two or have a PO splice that falls apart (has happened to me on both of my 40s

)
Headlight switch can be intermittently or completely bad.
If the wiring is not stock or has been completely hacked, the process will still work, but the schematic will be much less help. Good luck!