I had this happen after my pump sat unused for about a week too, turned out the motor shaft had just seized up a bit from sitting still. If you’re comfortable doing it, try switching off the breaker, taking off the back cover, and giving the shaft a gentle spin with a screwdriver. Sometimes it just needs a little nudge to free up.
Also, check that your pool water level is high enough to cover the skimmer opening, if it’s dropped too low, the pump can suck air instead of water and just hum. After that, re-prime the pump by filling the basket with water before turning it back on.
If it still only hums after that, it might be a capacitor issue, but nine times out of ten it’s just air or a little stiffness from sitting idle.