First results from the TNG50 simulation: galactic outflows driven by supernovae and black hole feedback