I had to Reinstall Windows and Now i Can't re Down Load

I had to Reinstall Windows and Now i Can’t re Down Load. I log in to my MS account and got to my Purchases and when i click the play on your PC button it opens the store and says it cant find what im looking for. . . I just want to re download my game. can any one please help. It gives me the error code 0x00000005