To be able to restore the previous version of documents in Windows 11/10, you have to make sure you turn ON System Protection. You can do this from Control Panel -> System -> System Protection ...