In reply to Andrew W: All of the above are good suggestions, one thing to check for which I have seen is the rear cassette has been swapped and has the wrong number of cogs, so your shifter may be an 8 speed and the cassette have 9 cogs (or 6 with 7etc), hence the missing gears.
More than likely cable sticking and set up wrong though. Crofty