O is masculine, η is feminine. Το is neutral. O and η don't actually translate to the word the, it just gives you the gender. Even when we are talking about someone, let's say a woman named Eleni, or a man named George, we say "η Ελένη" or "ο Γιώργος." A lot of times we use το, it's for subjects that could go either way.