There are a few things that could explain this:
Thor is able to use his powers against Hela, but they are still new to him and he is not use to wielding them without a "focus" like his hammer. While he is incredibly powerful, he struggles to use his powers effectively.
Thanos is no slouch. He's referred to as "thethe strongest being in the universe" multiple times, and with good reason. Thanos and company have already breached the ship and slaughtered quite a few as guardianAsgardian warriors (notice the bodies strewn around in the opening scene).
Heimdall is similarly incapacitated, despite being a mighty warrior as well.
Ebony Maw binds Thor after he takes a beating from Thanos