For the given reaction
a balanced net ionic equation is
During the reaction
Mg(s) is oxidized and it is the reducing agent,
Al2(SO4)3(aq) is reduced and it is the oxidizing agent.
The balanced half reactions for the oxidation and reduction are following: