Hi,
Thank you for posting your query.
Kindly follow the steps provided below to resolve your issue.
Most software that you buy directly from Microsoft, like Office, Windows, and Xbox games, comes as a digital download that you can download, install, or reinstall. After you purchase software, the download will be shown in your Order history. To find a specific download, sign in to the Order history page with the Microsoft account you used to make the purchase. Find the software, and then select Product key/Install.
Go to this link for your reference and other troubleshooting procedures https://support.microsoft.com/en-us/account-billing/find-and-install-your-microsoft-downloads-from-microsoft-store-9ee788eb-280a-7d3e-fa8e-0418c71af495
Do not hesitate to message us if you need further assistance.
If the answer is helpful kindly click "Accept as Answer" and up vote it.