Hi Morgan,
It sounds like there is broken wiring or a bad connection. Try to isolate where the problem is by bending a section of the wire while holding the rest still.
If you are comfortable using a soldering iron for electrical repairs, you can search on Google for detailed repair instructions.
Otherwise, you can give these ideas a try:
If it is near the Earpod, a temporary fix may be to use a hot glue gun to reinforce and prevent the wire from pulling. If it is anywhere along the wire, you can try to make a "stent" by taping part of a toothpick against the trouble spot to reinforce and relieve strain.
Good luck and happy repairs!