What are the points of complaint?
1 >> late delivery
2 >> missing pages [not clear if these have been torn out or have been missed during the production of the book - you need to be clear which]
3 >> the cover was dirty.
Your letter needs to start with a statement about your order. It then needs to state the nature of your complaints. Finally you need to say what you would like the company to do - replace with a clean and complete copy or refund your payment.
Write a draught and post it for comment.