wierd running of motors using arduino and l293d

Your 9V motors are the small ones (PP3 or equivalent)??

If so they won't be able to supply enough current really - not that this explains the behaviour.

Test all the wiring is sound, try unplugging each motor in turn (with the power off of course)
and see if each is behaving when on its own - that would suggest power issues.