Steppermotors fix?

Hi, I have two of these stepper motor with puls encoder. But the encoder is broken because it was drained with water. Is there anyway i can make it work without the encoder? I feel sorry for just dump them if there is a possible way to use them.
Thanks for answer