A flat tire usually means that the inner tube – the tube inside the outer tire that holds the air – has a hole. Congratulations! You’re one of millions.
You have two options: replace the tube with a new one, or patch the hole.
Because finding and patching a hole is a little harder, it’s easier to replace the tube with the spare first and patch the hole later.