Set your shifter to the highest value... that will set the cable to its loosest state. Then detach the cable from the derailleur and it should go right over the smallest cog. Then reattach the cable and it should be realigned. If not.. take it to your LBS.
If you can't work on it yourself, I'd have a LBS check it out... there may be other things wrong with the bike too.