I.e. is the abbreviation for id est. This means ‘that is (to say)’. Use i.e. when you want to introduce another way of putting what you have already written.
E.g. is the abbreviation for exempli gratia. This means ‘for example’. Use e.g. when you want to introduce an illustrative example.