Hello Muhammad Nawaz,
Welcome to Microsoft Q&A forum.
Before we proceed further, may I know if you have the connection issue with other Microsoft apps and services as well?
Additionally, may I have a photo of the order history of Minecraft so I can check for you? Please remember to remove all personal information before posting.
I'm waiting for your reply.