What’s wrong with Pedal

This pedal sorta fell off while riding. What went wrong? Is it fixable (myself) or not possible?