The electrical cord is permanently attached. If the cord is damaged then the motor must be replaced. Otherwise, just take out the rotor/impeller and inspect for damage. Clean out the rotor well and reassemble the motor. Plug it into an outlet and see if the rotor spins. If it does, your are good to go. Also see are blog for Q&A on these issues.
Blog address: https://www.renaaquaticsupply.com/blog.asp