The only way to do this is through continuously practicing. If you're just starting out, work on throwing 10-15 pitches to the point where they're all strikes. Then, gradually build up that pitch count. A second technique is to work on spins.