You need to tune your rear derailleur.
Go to the Park Tool website for a good set of step-by-step instructions. My advice is to completely disconnect the shift cable from the derailleur and start from the very beginning as if you were installing the derailleur for the very first time. Follow the steps in order because that's significant.