I have gum pains which have led to my ear also aching what can I do about the pain?

Ibuprofen. The issue is not uncommon. The same nerve that serves the gums also serves the eardrum & nearby structures. It is hard sometimes to decide which is triggering the pain because ear issues can trigger tooth/gum pain. It is usually inflammation which ibuprofen may help. A visit to your dentist is a good idea.
See a dentist. You can see a dentist and have the issue evaluated and treated.