There are trains and direct buses from Linate and Malpensa airports to Milano Centrale train station and viceversa, see https://www.trenitalia.com
or
https://www.malpensaexpress.it/
or
Moving inside Milano: informations about local buses can be found in
https://www.atm.it/
Tickets can be bought in shops (typically News kiosks or Tabaccheria) or directly on buses, using credit cards.