On the Xbox 360, the answer is simple: you need lockpicks. Buy them, or find them in crates and containers around the world.
I stock up from a Thieves Guild contact in one of the larger cities. It is hard to miss once you get there.
How many picks a lock consumes depends on two things: the difficulty of the lock and your Security skill. A high skill makes tougher locks manageable and reduces the number of picks you burn while your character finally gets the tumblers to line up.
The PC version works the same way in principle, though the controls differ.