to be in a very bad condition; to be unable to be repaired
The car had had it.
to be extremely tired
I've had it! I'm going to bed.
to have lost all chance of surviving sth
When the truck smashed into me, I thought I'd had it.
to be going to experience sth unpleasant
Dad saw you scratch the car — you've had it now!
to be unable to accept a situation any longer
I've had it (up to here) with him — he's done it once too often.
Definitions from the Oxford Advanced Learner's Dictionary, 9th edition