Need more info
You have not provided enough information to make a diagnosis as to why your feet are hurting.
You need to get an examination by your doctor, but depending on your medical history you may have a form of neuropathy
or you may have a form of arthritis
in your feet which is causing the pain.