Headphone Sensor is a featherweight app that notifies you if your wired headphones are plugged in or not, with a very straightforward user interface.
This allows you to tell the difference between whether your headphones themselves are broken, versus the phone. If the headphone sensor can detect your headphones, so can your phone.