Pool pump humming and not rotating

Turn on pump and hums.  Removed screws to get to impeller and removed and retried and it spun.  Put impeller back on and no rotation. Took impeller off again and hums and no rotation. Doesn’t appear to be impeller. Perhaps capacitor?

What should I do next?