How to rollback a map to a previous state
If it happened in your solo map then there is no way you can do a rollback of the map.
I suggest in the future that you set up a local server and add some plugins to avoid this kind of problems. Some plugin make automatic saves/backups of the map like PerfectBackup. (for 1.9)