Fainting is kind of a status problem, but not like the others, it's in a class of its own.
If your pokemon has fainted, you can do the following:
- Use a Revive, Max revive, Revival herb, or Rare candy. (Note that revival herb will lower your pokemon's happiness)
- Take your pokemon to the pokemon center. (this is the easiest and cheapest way)