There is a lot going on in that foot of yours.
It takes a number of muscles and tendons to move the toes and hold them stable which walking. Any of the muscles, tendons or ligaments can be bruised or sprained. The specific diagnosis has to do with where it hurts and with which activities. In the meantime rest, ice and well-made shoes can help.