I can only play Minecraft offline. How and where can I change this?
The problem has nothing to do with your Microsoft account. I don't know what the cause is, there's too much information missing.
Could e.g. It's because you're not connected to the internet