First on the left panel in the “Origin” section turn ON Visibility for the XY Plane.
Now select the first sketch/piece of your model that dictates the rest of its orientation, usually the topmost piece.
Then click “redefine” from the context menu, select the now visible XY plane..
Done.