Yeah, I thought you were talking about that kind of plug. The problem is, it doesn't look like the connector has come out, as I'd thought - it looks like it has sheared off. How are your soldering skills? You may be able to solder the wire back to the connector (and then hold it in place by wrapping the base of the plug with insulation tape). You'll probably need to strip the yellow wire back a little first.
Not a difficult job, but if you're not familiar with soldering irons and wire strippers, I'd recommend getting a more experienced friend to help.