Friction, contact and induction
Charge is conserved, so objects charge only by moving charge around: rubbing and touching move electrons from one object to another, while a nearby charge can polarise a neutral object and pull on it, and grounding a polarised conductor leaves it charged by induction.
From AP Physics 2.