Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
Check with the computer manufacturer if there is a way to restore the OEM software. They may not be willing to help, if your PC is out of support.
An alternative, at least temporary, would be to use open source software such as LibreOffice which is able to create Word documents.