TCP works like a phone call: first it connects, both sides confirm they can hear each other, and only then do they talk. Every little piece of data that arrives is confirmed, and if one is lost, it's sent again. Also, if the pieces arrive out of order (3 before 2), TCP rearranges them. That's why a 2 MB web page arrives whole and in order, even though it travels in more than 1,000 packets.
TCP checks that every piece arrives correctly. The receiver answers 'got 1, got 2, got 3', like confirming each box of a move arrived. If the sender doesn't get the confirmation for 4 within some time, it assumes it was lost and sends it again. So even if the network loses 1 of every 100 packets, the file arrives complete.
TCP and UDP are two ways of doing the same job in the transport layer: carrying data from one program to another. TCP is like registered mail: there's a connection, each delivery is confirmed, it arrives in order and what's lost is resent. UDP is like handing out flyers: it's fast and can reach many at once (broadcast), but you don't know if everyone got them. Neither is better: it depends on whether losing nothing or arriving now matters more.
UDP is like shouting out the window: it doesn't ask whether the other side is listening or wait for an answer, it just sends. It doesn't open a connection, doesn't confirm each piece and doesn't resend what's lost. That saves a lot of work, so it's faster and simpler. In exchange, if 5 of 1,000 packets are lost, those 5 never come back.
Choosing between TCP and UDP depends on what's worse: something arriving late or getting lost. In a web page or a file, losing a piece ruins it, so TCP is used even if it takes a few milliseconds longer. In a video call, a piece of image that arrives 2 seconds late is useless: better to skip it and move on, so UDP is used. That's why HTTP, email and file downloads go over TCP, and live video, voice over the internet and DNS go over UDP.
Latency is how long data takes to arrive. In some uses, late data is worth the same as lost data: in a call, a word arriving 2 seconds late already interrupts the conversation. It's like a subtitle that shows up after the actor finished speaking: better not to show it. The rule: if you need the lowest possible latency and late data is worse than lost data, use UDP.
Overhead is the extra work that isn't your information but is needed to send it. With TCP, opening the connection, confirming each packet and resending lost ones are overhead: data travels that isn't your file. It's like sending every letter by registered mail: it arrives for sure, but costs more and there's more paperwork. That extra uses more bandwidth (the network's capacity) and makes TCP slower than UDP.