Take the head off, if the square "speedometer" drive is turning when it is revving then the problem is the head.
If it doesn't turn it is a broken drive or, as happened to me, it has come out of the power unit.
Possibly the head has been taken off and when being put back on it has not been...