Fast DC motor resets Arduino?!

Are you powering the motor from the Arduino 5V rail? This is a bad idea,
risks damaging the Arduino, but here the problem seems to be interference,
probably due to the motor putting lots of noise onto the 5V rail.