closed the world settings and outliner and cant reopen the outliner

You can re-enable them in the Window menu at the top

You can also reset your layout to default by going Window->Load Layout->Default Editor Layout