Sw, your best option is to extract the Windows 7 Product Key (PK) from the registry, using any one of a number of free utilities. Then, download a Windows 7 installation DVD image (ISO) file from Microsoft, and create a DVD or a bootable flash drive equivalent. And finally, boot from the installation media, and either:
Format the largest drive on the hard disk and install on that drive, or
Delete all the partitions and allow Windows Setup to automatically create a new partition and install.
https://www.microsoft.com/en-us/software-download/windows7
Note that PK should be printed on the Certificate of Authenticity (CoA) affixed to the computer. If it's unreadable or missing, use a utility as described above. I have NirSoft's ProduKey at hand for the task.
https://www.nirsoft.net/utils/product_cd_key_viewer.html
If you're unable to download the ISO from Microsoft, state the Windows 7 edition (Home Basic, Home Premium, Professional, etc.), whether it's 32-bit or 64-bit, and if it was installed by the manufacturer.