Looks as if the chain is well and truly jammed between the frame and the crank. Your first step will be to remove the crank and then you will be able to adjust your derailleurs to reduce the chance of a recurrence. Some kind of a chain catcher would help prevent this happening again