The best way to avoid plagiarizing is to use a citation style. Different disciplines use different citation style guides. Refer to your assignment instructions, course syllabus, or ask your instructor if you are not sure which citation style to use.
IRSC Libraries offers comprehensive Citation Style Guides for APA, CSE, MLA, and Chicago styles. IRSC Librarians are available to help you with creating citations and proper paper formatting.