You don't — they're all available from the moment you install. Team Fortress 2 has no character unlock system; the nine classes are open immediately.
Press the , key and you'll get the class selection menu, where you can pick any of them. What you do unlock over time is cosmetic: weapons you find or craft, and hats, none of which change which classes you can play.