I think the machines are scrap metal now and need to be replaced. They could be completely disassembled and cleaned, and the bearings & electronics replaced, but I think it is not worth that effort.
As far as future protection from flood damage, build or acquire a new shop on higher ground, out of the flood plane.
Or I guess this might be an option