Melodyne sync

I still don’t know what it was but I’ve sorted it. I saved then deleted the vocal track and saved the file under a different name. Then shut down Cubase and reloaded the new file. Then I loaded the vocal file. It all ran in sync so I loaded it into Melodyne. Amazingly it worked, so problem solved.