Download an ISO file of the exact version of windows that you currently have the key for. Make sure you know the key. Burn it to a disk or USB drive. Then install it via that disk/ stick, make sure to prioritise CD or USB in boot sequence, and enter the key when asked.