A gas leak can come from a few different components like a Gas Tank, Fuel Line or Fuel Injectors these are the most common areas where the gas will leak from causing your car to smell like gas.
A damage Spark Plug in your car mainly if it is not screwed tightly causing some of the air-fuel mixture to escape causing a fuel smell.
Missing Gas Cap, defective Evaporator System allows these fuel fumes to escape, causing your car to smell like gas.