hardware requires schematics
software requires code
if you are asking about a hardware issues, wiring, circuits, what chips, motor drivers, etc, you need to work up the bits needed.
microcontrollers use micro-electrics.
a switch says, I am open or I am closed
the micro-controller says, if the start switch is closed, then send a signal to the motor driver to run the motor.
the motor driver sees this low power signal and it allows high power to be sent to the motor.
an obvious solution which no-one has mentioned yet.
watch some videos on Arduino pump or Arduino fan or Arduino motor
take some time and follow the many tutorials on how to do the example sketches that are in the IDE. as you learn the basics, you will gain the knowledge to make this sort of project.