I gave it to you“Te” means “to you” when speaking to one person informally; “lo” refers to a masculine singular thing or to something understood from context.
SP: Te lo di esta mañana, ¿no te acuerdas?
EN: I gave it to you this morning, don’t you remember?