how to give credit to line from a book that your putting in your research

paper?

It depends upon which style your school/teacher requires.

http://library.duke.edu/research/citing/