Cause of Failure: Wrong connection of NC and NO to the motorRecommendation: Swap the NC and NO connection