you can add a drop of super glue to the end that has the ear pieces insert it into the part where the broken piece is let it dry then unplug it normally.
open