Strange Problem while controlling motors with MOSFET

The thin red and blue wires are going to the brushed DC motor (Not able to fit in the picture, sorry!)