Newbie needing some help

Every time that has happened to me, it has been a loose connection on the direction pin.