Pc only boots when ram is reseated

Hey, I am facing this problem from yesterday and I was just using my pc like normally and I plyggin my wifi adapter and speakers but suddenly a BSOD came and it restarted my pc a few times, I tried the automatic repair but after that my pc won't boot and fans and lights working but dispaly not coming plus mouse and keyboard also not working.
When I reseat the ram after that the pc would boot, but afyer a shutdown it won't boot again.

--Things I did--

  1. Removed CMOS and placed back after 5 mins
  2. Check cpu pins all great