What is the differences of router and switch?

a router is a automatic switch .see a router can't work without a switch cause it is through the switch that a router gets it energy