How can you get hacked in Minecraft?

If your someone has stolen your account details (username, password).