When self-treating any condition with an over-the-counter (OTC) medication it's important to pick out a product that will treat your specific symptoms. This is why it's important to read the back of the medication package and not the front. The front of the package is where they put all of the marketing statements that try to get you to purchase the product, but very little useful information about the drug itself. Read the back of the box where all of the FDA regulated 'drug info' is. Specifically, the section that is labeled 'active ingredients', because this section will tell you what specific drugs are in the product and what the drugs are used for. So to answer your question specifically, the best medication to treat both a sore throat and an earache is an analgesic (pain reliever) such as acetaminophen (Tylenol). In adjunct to the acetaminophen, you could try topical benzocaine (Cepacol lozenges, or Chloraseptic throat spray) to help with acute throat pain.