How does the space station stay in orbit?

Earths gravitational pull tries to pull it towards itself, but ends up pulling it in a large circle around it.