only one dc motor spins

TolpuddleSartre:
I assumed that at some point, the OP is going to want to control the speed of the motors, and is going to hit a big wall of disappointment.

Ah right, so nothing to do with the current problems just anticipating possible future problems. Fair enough but for a minute there I thought I was missing something about the existing problem.

But that does raise another question because the PWM for motor speed control should normally be applied to the Enable pins of the L293D (pins 1 and 9) which aren't currently being used.

So jessabu, please confirm that you are actually using a bare L293D (not a motor driver board). And can you provide a circuit diagram showing all the L293D and motor connections, particularly where pins 1 and 9 on the L293D are connected?

BTW if Motor A works then the comments for the Motor pins are wrong. motorPin1 must be connected to pin 15 on the L293D. Pin 14 is one of the outputs to the motor. Which is also why an up to date circuit diagram is important.

Steve