Once you motivate a creature, it remains motivated for you for as long as it remains on the battlefield. If another player gains control of it, that player must motivate it before it can attack or block, but if you regain control of it, it’s still motivated for you.