which library and shield are you referring to?
either way you cannot just hook up a motor directly to an arduino or any other controller unless there is an h-bridge/motor driver connected to the i/o pins in question
the arduino i/o pins are only rated for (i think) ~40ma anything more than that will possibly fry that pin.
If you tell me specifically what you're intending to do I can suggest hardware solutions too.