If the rear wheel just came off the track, you should be able to work the door out of the pocket. And then rehang it.
Another not uncommon problem is that sometimes the screws holding the door track at the most inside part of the door will come loose from the ceiling and let the track (and door) drop down inside the pocket. This happens from the constant pounding that takes place while going down the road. That is more difficult as access to the pocket is very tight and hard to put the screws back in. Mine did that. My pocket door is behind my entry closet. And the entry closet has an access panel in the back wall. I was able to work a screw driver with magnetic screw tip holding a screw up thru the opening to put screws back in the track. Some with no other access have posted how they used a cordless drill with a very long home made extension to hold screws as they reached up thru the pocket opening to put the screws back in.