In that case, it’s probably an account issue. There are 40+ threads on this already, but the short story is:
Pull up the XBox game bar (Winkey+G for a shortcut) and click the Settings gear icon in the top menu bar, click Accounts and log out.
Launch the sim and you’ll get a login screen. Click to log in and you should be fine.