I agree with everyone else.
See a vet first to get a diagnosis. The vet can then prescribe medications (if needed) that have been proven to be safe in dogs. Aspirin and other over-the-counter painkillers for humans are not safe to use for dogs. Here is an article that discusses this:
https://www.petmd.com/dog/centers/nu...ation-for-dogs