Example one shows a direct quote. Quotation marks are used to show which words are the author's and which words are original. After the quote, the author's last name appears in parentheses.
Example two shows research paraphrased and inserted into the paper. To give the author credit, their name and title of their article is given. This is called attribution.
These are examples of research integrated into a paper. In-text citation is used to give credit to the authors whose research was used for the paper.