If it's an ear infection, you might try giving him a warm something to lay on - like one of those microwavable heating pillows for injuries. I've seen them at the drug store, and they have something in them like wheat chaff or sand or something like that (I don't own one) but they don't get hot enough to burn like a heating pad, and don't turn cold and take heat from your body later like a hot water bottle does when the water loses the heat.
I suffered from ear infections a lot as a child. The infections used to make me so dizzy I'd throw up, and the pain was horrible. My grandmother, an old Italian, used to warm up a little bit of olive oil or garlic oil on a spoon and pour the very warm oil into my ear, which was an "Old World" remedy. I can still remember the relief of the heat in my ear, and can still remember the sensation of the warmth running down in and covering my ear drum. (I had ear infections until I was 7 or 8, so this happend a lot, which is why the memories are so strong.)
I'm not recommending that you should do this exact thing, because I don't know if it can cause any harm at all (although I guess I didn't have anything bad happen), just telling you that heat was such a blessed relief that I remember it some 40 years later.