CPU fan on and off

abid.nancel

Prominent
Dec 2, 2017
5
0
510
I didn't use my computer for a month because of serious test exams.
Yesterday I pressed the power button and my pc wasn't turning on. So I looked at the cpu fan it was turning on and off on its own. I let it be for 2-3 min. After no success I turned off the switch.
Today I tried to turn on my pc and my fan started running with no issues. I even heard beep sound but no display signal. I tried a different monitor but still no signal. (On board graphic) Then I turned the switch off and on. But the pc wasnt even turning on. No fan spinning. So I continued to press power button 6-7 times and the fan spins for 2 second and turned off on its own.

So in short, my fan spins on its own sometimes but no display signal. Sometimes it spins on and off. Sometime it doesnt even spin.
I did several things:

1. Pulled out all the cables and plugged them in

2. Changed ram from one slot to another.

3. Used different monitor

My computer spec:
Intel i7-3770
Gigabyte h61
4gb ram


I am not sure what should I do or what part I need to buy to fix this issue. Any words related to this issue is helpful for me. Thanks in advance (sorry for my bad english)