See a doctor
Pain is the body's way to let you know something is wrong, and might need attention.
Causes of pain as you describe might be a neuroma
, or bone injury. Antiinflammatories might help, but you might need something more effective than over-the -counter, such as an injection of steroid. Treatment varies depending on the actual diagnosis.