What if the item I received is damaged or faulty?

What if the item I received is damaged or faulty? How did you deal with it?