Hi, sore throat
associated with muscle spasm and pain point towards an infectious origin. This could be pharyngitis
or common cold
. You would need an antibiotic like Penicillin V or Amoxicilline (if you are not allergic to) and a pain killer with anti-inflammatory property like Ibuprofen but I would suggest you see your doctor to know the exact cause of your problem before treatment.
Hoped I answered your query
Wish you good health