Please check if the CPU fan is running. In case, its working fine, you may remove the CPU and first ensure if it is compatible with the motherboard. I would suggest you to share the motherboard model, so shall also refer. Later paste the CPU and the heat sink properly using a thermal paste.