The motor will probably take more then 40ma at 5v. You have to use transistors and dont forget the base resistor.