How do you log into your existing iTunes account?

When you buy something it should automatically give you the option to sign in or not, but if you don't it won't let you buy it.