oxidation state
Imagine you are an accountant whose only job is to keep track of electrons. When atoms bond, electrons are shared, but you decide to be ruthless about it: whoever pulls harder gets full credit for the shared pair. The oxidation state is the running tally you get from this bookkeeping — the charge an atom would have if every bond it makes were torn apart and the shared electrons handed entirely to the greedier partner. It is a clever fiction, but an enormously useful one, because it lets us watch electrons move during a reaction.
Concretely, the oxidation state of an atom is the hypothetical charge it would carry if all its bonds were treated as fully ionic. In water, each O-H bond is split by giving both electrons to oxygen (the more electronegative atom), so oxygen ends up counted as 2- and each hydrogen as 1+; oxygen's oxidation state is -2 and hydrogen's is +1. The sum of all oxidation states in a neutral molecule is zero, and in an ion it equals the ion's charge — that single accounting rule lets you solve for an unknown state, such as the +7 of manganese in MnO4- (since four oxygens at -2 give -8, and the whole ion is -1).
Why bother with a number that is not the atom's real charge? Because oxidation state is the language of redox. When manganese goes from +7 in MnO4- down to +2 in Mn2+, you can say at a glance that it gained five electrons — it was reduced. Tracking these numbers tells you which species lost electrons and which gained them, lets you balance equations, and organizes the descriptive chemistry of nearly every element. Just keep the honest caveat in mind: the real charge on manganese in MnO4- is nowhere near +7. Oxidation state is a deliberate over-simplification chosen to make electron counting easy, not a measurement of true atomic charge.
In SO4^2-, oxygen is -2 (four of them = -8) and the ion is -2 overall, so sulfur must be +6.
The sum-to-charge rule lets you back out an unknown state.
Do not confuse oxidation state with formal charge or with real charge: all three are different bookkeeping schemes. Oxidation state gives shared electrons entirely to the more electronegative atom, formal charge splits them evenly, and the true charge (from experiment) usually lies somewhere in between.