This might sound a bit daft but it's happened to mne when restoring older bikes.
A rat or mouse family makes a home in the silencer and they bring in enough bedding material to block the pipe. Successive generations bring in more material. The bike will start eventually but will not rev above idle. Worth checking...