Remember when you're looking for help, more explanation is better.
So you removed the Brake line/hose from the caliper and after putting it back together you don't have any rear brake, correct?
Bleeding can take a long time, specially if air got into the line. You can bleed the brake system with the caliper removed from the bike (leave the line attached) and hold it up higher. That can help air work its way up the line and out the bleed screw.
Also make sure you don't have a bunch of brake fluid on the pads/rotor. Use some brake cleaner and spray the crap out of it.