Anytime you have an accident or incident with your bike it's important to run through the range in front and back, spin the wheels and check the brakes before hopping back on the bike. As you have found out not doing so can cause very big problems very quickly.