Armature (leg) detached from body.

In creating a blender skeleton, one of the legs has become disconnected from the body. Is there a way to reconnect it at the joint?

Also, the other leg will not move at the thigh. Any suggestions?