Go to the search function by your profile pic, and search for “Can’t login to xbox”
There are a lot of returns there, you will probably find a solution.
FYI, the moderators are a bit strict on posting in the Bugs & Issues section, as per the site rules, so you should search all the other sections of the forum that may pertain to your issue before you post here.
This section of the forum is for proven bugs that you can’t find a solution elsewhere on the forum.
So, having said that, give the above link a try, if this solves it, please mark this thread as solved.
If it doesn’t, try posting back in a different section of the forum, and let us know!