An Insulin pump
works by delivering a steady rate of Insulin into your system. As you eat, you can give yourself periodic boluses of insulin, similar to the injections you would normally give yourself.
Generally the pump is thought to give better control than individual injections. However, you still have to do your part by eating right and exercising.
Answer assisted by David Miller, Medical Student