Hi,
Did you have an activated Windows license from a free upgrade from Windows 7, 8, or 8.1, or did you purchase a digital or physical Windows 10 license?
I ask because you might have an OEM license; this type of license is tied to the hardware—specifically the motherboard—so if you replace it, you lose the license.
If it is an FPP (retail) license, you can transfer it to another PC, but you cannot do so with an OEM license.
https://support.microsoft.com/en-US/Windows/activation/reactivating-windows-after-a-hardware-change
Thanks.