Follow the cable from the brake all the way to the hand lever, making sure the housing is sitting properly in the stops the whole way. Otherwise, you could just unhook the rear brake until you can get to the shop. A description of what type of brake you have would be helpful.