Was it ok before the head came off?
Check your vacuum lines are on the correct pegs as any left off or miss placed can cause either no gears or jerky gears.
Could it be an electrical connection ?
It's got to be some very simply that is being missed