Is arduino effected by external electrical noise ?

Sounds like noise. Shielding may help.

How is your power supply? Same as the motor? That's another avenue for noise to reach your Arduino.