A variety of things. Sometimes twitching in the neck could be due to high stress, other times it can be a muscle spasm, or a bad nerve ending. See a doctor if this continues to bother you.
This could be a nervous condition if it happens when you are under unusual stress. It can also be liteally nerve damage in your neck or bone spurs in your neck. whitebird