If power cuts out completely, always start with the power source: With the ignition off, measure the voltage across the battery terminals. If it's below 12V, charge it. If it cannot hold charge, replace it. Also, you should check that the ground connection between the battery and the frame is good. I don't know the CB400, but there should be a ground connection between the wire harness and the frame too. Check that for good electrical contact. Measure resistance between the frame and the battery negative terminal and between any green wire and the battery. It should be well below 1-2Ohms.
Next the fuses: They can _look_ fine, but you should test them with the meter for continuity.
The battery holder can go bad:
Then go on with the ignition switch: Measure voltage between the red wire and ground/frame. If you don't see 12-13V, re-check your ground connections, the positive connection of the battery to the solenoid/wire harness and the fuses.
Then measure between the black wire at the ignition switch and ground with the key in the 'on' position. No voltage means that your ingition switch might be toast.
Only after the last checks fine, it's worth spending time to check all other connections.
Cheers
Carsten