Freewheel: the motor has thread for a screw on freewheel, usually 6-7 speed, like this:
Cassette: the motor has a freehub and will accept a 8-10 speed cassette, like this:
Motors with cassette fitting (freehub) tend to cost a little more.
Check your rear wheel and buy accordingly.
If you...