Question Computer freezes and keyboard and mouse's power is cut off

herobro23

Prominent
Dec 1, 2019
3
0
510
When the first problem occured, i was playing witcher 3 which was in 1440p resolution. Suddenly game freezed and keyboard and mouse stopped working.When i restarted, monitor, keyboard and mouse was unresponsive(no signal on monitor). I opened the case and tried to remove 8 pin cpu cable and put it back and it worked. Second time this problem ocurred was when i was just surfing web. This time i removed rams and put it back in and then it worked . Could anyone help me identify the problem please? (By the way, 8pin cpu cable is loose because when i fully push it into its place, pc wouldn't start.) Thanks for your help.

Motherboard: Asus Tuf B450 pro gaming
CPU: AMD Ryzen 5 3600
GPU: Sapphire Radeon RX 5700
RAM: KINGSTON HyperX 16 GB DDR 3200 Mhz
SSD: Corsair Force MP510 480 GB M.2
HDD: Seagate 2TB
PSU: 600W