This has me confused:
"So when i dont have the graphics card in it shows that my motherboard is working and my cpu but its saying fan error?"
Are you running a computer with an IGP? If you have an IGP you may have to disable it in order to boot off of a discrete graphics card. We're going to need more information about your system