Welcome to the forums, newcomer!
When posting a thread of troubleshooting nature, it's customary to include your full system's specs. Please list the specs to your build like so:
CPU:
CPU cooler:
Motherboard:
Ram:
SSD/HDD:
GPU:
PSU:
Chassis:
OS:
Monitor:
include the age of the PSU apart from it's make and model. BIOS version for your motherboard at this moment of time.
cpu:intel 9400f
motherboard:msi h310m pro vdh plus
Your processor is an F SKU meaning it lacks an iGPU. You will need a discrete GPU if you don't have one, to get display out from your system.
last time i used it the cmos battery was disconnected while my pc was in bios
Have you tried replacing the CMOS battery with a fresh cell?