Your curriculum vitae is essentially an extra long resume, with more emphasis paid to your publications and research work. It follows much the same rules as with resume writing, and you should probably check the local library for a handbook, and pick one that looks good, matching it to your qualifications.
The motivation letter, likewise, is a longer, more structured, cover letter. You'll go though your qualifications one at a time, with a short paragraph about each, the first and last paragraphs functioning to pull the others together to show how all your accomplishments lead to your overall goal.
Some other people may have hints for you, but the basic answer is that you will have to find examples in a book, and copy the style of your choice, substituting your information.