Been waiting for the post where you hit it with a hammer to get it home......
I have been involved with cars/trucks my whole life. Have always rebuilt my own engines. Built racing engines for myself and others all the way up to professional racing.
Yes, the hammer will work on occasion. My process is to diagnose the issue when it is happening. Hitting the starter might get you going but it is going to fail again so why not find the actual reason for the problem. If there is no power on the solenoid from the switch that isolates the search to that area. Just my process.
Hope you have it fixed.
I had a g/f back in highschool, she carried a 2x4 in the back seat and she'd beat on the starter while someone cranked it. I always told her it would go out sooner or later, but she didn't want to spend $50 on a new starter and let me install it.