What did broke on your bike? If you're regarding brakes, I'll see if I get this... You braked on your bike, your brakes did stop the bike and sent you to a pole? Or, your brakes didn' stop you causing you to hit the pole?
After you hit the pole, did something break on the bike? Or you just want to make sure you have good brakes? Sometimes, it's the braking habits which could have caused this. If you suddenly grab the brakes you will likely loose control of the bike, and cause an accident. Try to look ahead so you can stop more controlled.
You could take your bike to a bike shop and see why you didn't brake. It could be that the pads were worn out and need replacement, or the cable has streched, or worse case, you need a new brakes. This will be a lot cheaper than buying a new bike. But, depending on your current bike and if you really want a new one, then just buy a new one.