The first step to refurbishing an old computer is cleaning the computer and verifying that every piece of hardware works. You should test the following:
Disk
Memory
Peripherals like USB ports, sound, DVD drive, and more
Motherboard
If everything is working well, install appropriate software for the video memory, RAM, and processor. You can confirm these resources in the boot-time UEFI/BIOS panels.