Monitor wont recognize pc input

Dec 16, 2018
2
0
10
Hi,

I bought a second hand gaming PC yesterday and Im now quite disappointed.

Spec-
Gtx 1050 ti
I5 6500

First of all, the cpu was over heating and hitting 90 degrees. But i think fixed that?
But now my monitor wont recognize my computer. I plug the hdmi into the gpu and the intergrated graphics card but still no input?
Is the cpu dead?
Is the gpu dead?
How do i know which to repair?
Thanks in advance to any replies