I'm not sure why but it seems that you have disabled (or removed?) NuGet package sources. For the WinUI 3 Gallery, your package sources should look like this:
Also make sure you have internet connection in case the required NuGet packages are not cached and VS needs to download them.