Buy flea mkt hub motor or not

Found a 26 in rear hub motor with good tire for $15. Wheel does not appear to turn relative to axle.
Ordinarily I would snap it up, but I plan on moving out of state.
One side of the hub is attached with screws. .A cable is attached, with several small wires. Buy it? Thanks