when my computer switch on it will boot and after a moment the fan will off.
why it so happened
This is usually the motherboard or the power supply that is defective. If you have access to another power supply unit you should test with that. If it works fine wioth the other power supply then you know your answer.
Also this may seem obvious but i've seen the power button get stuck somtimes and if it is pressed for more than 10 seconds the systems will auto power off, check that too.
Breadboard with just motherboard, CPU & HSF, case speaker, and PSU.
===> Skip the complete system disassembly. You probably do not have a case problem. But do disconnect and remove everything from the motherboard except the two power cables (24 pin main power and 4/8 pin CPU power), CPU and heatsink/fan, and the case speaker.
Make sure you plug the CPU power cable in. The system will not boot without it.
I always breadboard a new build. It takes only a few minutes, and you know you are putting good parts in the case once you are finished.
You can turn on the PC by momentarily shorting the two pins that the case power switch goes to. You should hear a series of long, single beeps indicating memory problems. Silence indicates a problem with (in most likely order) the PSU, motherboard, or CPU. Remember, at this time, you do not have a graphics card installed so the load on your PSU will be reduced.
If no beeps: Running fans and drives and motherboard LED's do not necessarily indicate a good PSU. In the absence of a single short beep, they also do not indicate that the system is booting.
At this point, you can sort of check the PSU. Try to borrow a known good PSU of around 550 - 600 watts. That will power just about any system with a single GPU. If you cannot do that, use a DMM to measure the voltages. Measure between the colored wires and either chassis ground or the black wires. Yellow wires should be 12 volts. Red wires: +5 volts, orange wires: +3.3 volts, blue wire : -12 volts, violet wire (standby power supply): 5 volts always on. The green wire should also have 5 volts on it. It should go to 0 volts when you press the case power button, then back to 5 volts when you release the case power switch. Tolerances are +/- 5% except for the -12 volts which is +/- 10%.
The gray wire is really important. It should go from 0 to +5 volts when you turn the PSU on with the case switch. CPU needs this signal to boot.
A way that might be easier is to use the main power plug. Working from the back of the plug where the wires come out, use a bare paperclip to short between the green wire and one of the neighboring black wires. That will do the same thing with an installed PSU. It is also an easy way to bypass a questionable case power switch.
This checks the PSU under no load conditions, so it is not completely reliable. But if it can not pass this, it is dead. Then repeat the checks with the PSU plugged into the computer to put a load on the PSU.
If the system beeps:
If it looks like the PSU is good, install a memory stick. Boot. Beep pattern should change to one long and several short beeps indicating a missing graphics card.
Silence, long single beeps, or series of short beeps indicate a problem with the memory. If you get short beeps verify that the memory is in the appropriate motherboard slots.
Insert the video card and connect any necessary PCIe power connectors. Boot. At this point, the system should POST successfully (a single short beep). Notice that you do not need keyboard, mouse, monitor, or drives to successfully POST. At this point, if the system doesn't work, it's either the video card or an inadequate PSU. Or rarely - the motherboard's PCIe interface.
Now start connecting the rest of the devices starting with the monitor, then keyboard and mouse, then the rest of the devices, testing after each step. It's possible that you can pass the POST with a defective video card. The POST routines can only check the video interface. It cannot check the internal parts of the video card.