Using Informal or Formal Language?

Do you know when to use informal or formal English?