IPhone 5 won't charge when connected to computer?

The USB cord that came with my iphone 5 broke so I went and bought a new one today. It charges fine when connected to the wall adaptor, but when connected to my MacBook Pro it doesn't even recognize the cord and doesn't charge! What should I do?

You should have a regular and a high-speed USB plug on the side of your MacBook. Plug it in for 5 minutes with tight plugs in on either side, and if that doesn't work, try the other one. Hope I helped.

If it is third party it is because the USB cable from the computer is not designed to carry that much power to the device from a laptop.