Arduino Motors Shield Issues

Start by giving the pins some sensible names instead of anonymous numbers then write functions with sensible names to move the motors in the directions that you want and to stop them. Test each function on its own then combine them together in loop()