Which lock? Pick lock or the vault lock?
For picks, you move the left stick until the pick starts moving and then hold it in that direction until it moves to the next pin. Continue until it unlocks.
For the vault you have to line all three locks up. Start with the first one and get a green, then reverse the direction for the second one till it lines up, and then you should easily line up the third for it to open.