A few checks fix most Team Fortress 2 launch failures, and they are worth doing in order.
Restart Steam first. A stuck client is the single most common cause, and it costs you nothing to rule out.
If that fails, right-click Team Fortress 2 in your Steam library, open Properties, go to Local Files and choose Verify Integrity of Game Files. Corrupted or partially downloaded assets are the next most likely culprit.
Run a defrag from the same menu. If the game still will not open, a clean reinstall is the reliable fix.
Contact Steam or Valve support with your error message and system details. They can see logs you cannot.
Tell us exactly what happens when you launch — a crash to desktop, a black window and a hang all point to different causes.