I restored two partitions, but Windows 98 does not boot properly, probably some system files are damaged. What should I do?

Since these are fat32 partitions, you can use a win98 boot disk and view the files in the respective drives. You can copy your important files from DOS environment to another safe location.

Another way is to attach this drive to another machine having Windows installed to be able to do the same under Windows.