The file should still be there, you just need to re-sync. Close the Pages app that you are using (whether using Command+Q on a Mac or the multitasking tray on an iPad/iPhone ). Go into iCloud, open the document/file that is giving you trouble and make any change to the document. Save it and let it sync. This should update the doc in Pages and make it work properly again.