How to connect 2 Arduino together?

Thank you for answering me

I use 3 motors but each motor shield can only control 2 motors. That's why I bought 2 Mega and 2 shields (the 2nd shield control the 3rd motor). Do you know something to use only 1 motor shield?

Thank you