The impact of sloshing on the intragroup medium and old radio lobe of NGC 5044