Are you sure the cable has been inserted fully into the device? If you are plugging into a phone with a case, there is a good chance the case is preventing the connector from being pushed all the way into the headphone jack on your phone.
Do the headphones have a detachable cord? Has the cord been possibly damaged?
You'll may find that the cost of the repair will meet or exceed the price of buying a new, replacement pair of headphones.