L298N Motor Driver and DC Motors Not Spinning

You will have to figure out a way to connect several ground wires to one ground pin. Y connections work fine.

I suggest to get rid of all the other stuff, and concentrate on getting the motor working. One step at a time!