only one dc motor spins

Right now you could post again what you have. Your code and your circuit. What it does and what it should do.