We are having issues with motors not responding sometimes , but other times they run fine. Does anyone have a troubleshooting method or tip to realize if this is the motor, cortex, motor controller or program?

Are they old motors? If so it may have a short at the point where the wire enters the motor. If not, wiggle the connectors at each link in the chain of wire.