Common writing tools to avoid plagiarism include:
Ultimately you need to be clear about which ideas are your own, and which ideas are those of others. This gives your reader context, and a way to do further research on the topic when you have sparked their interest.
Another strategy is time management and organization throughout the research process. Allow enough time to manage citations and keep them organized so avoiding plagiarism is easier to accomplish.