I have a loop in the chain after it came off. How do I straighten it out?
The chain needs to be carefully untangled before you try to ride it again. Consult the article on untangling a bike chain.