Investigate whether the sliding door is along the top tracks.
If the door is completely unhooked from the top tracks:
Try to lift up on the door.
Slightly push the door in toward the closet.
Hook in the top rollers back onto the upper tracks.