Ouch, that sucks. This happened to me no long ago on a road ride. I was climbing the last hill on the way home and pulled a muscle in my back. I found I couldn't turn the cranks without severe pain and it was good thing I could mostly drift home. I took three or four days off the bike and it righted itself.