England defeated Australia by seven runs in the fourth T20I at the Sydney Cricket Ground to take a 3-1 lead in the five-match series.