1
Open the activation settings, click Troubleshoot, then choose 'I changed my hardware', then in the resulting list, select the old device, that process should move the Windows licence to the new hardware.
2
If that process is not successful, try using the process they provide on this link to activate Windows.
https://visualsupport.microsoft.com/
3
If this process is also unsuccessful, then because this forum is just a user to user forum, you will need to contact Microsoft Support directly, they will be able to find your licence linked to your account and reactivate Windows for you.