Please try to check the type of license installed on your system.
- Open administrative Command Prompt.
- Type
slmgr /dlvand press Enter key. - Note the Product Key Channel section Windows Script Host box:
- If it mentions OEM <method>, you’ve OEM license installed.
- If it says Retail, you’ve retail license installed.
- If it mentions GVLK, VOLUME_<method> then you’ve volume license installed. Note that GVLK stands for Generic Volume License Key.
So if you've OEM license, it is lost due to motherboard replacement. Changing motherboard requires new license.
If you've Retail license, you reactivate it again with its product key.
You can refer the reactivation detailed steps here:
https://www.kapilarya.com/reactivate-windows-11-after-hardware-change
Let us know if this helps!
Note: Included link(s) in this reply refers to a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.