The basic format for a book is:
Surname, A. B., (2018). Title of book: Subtitle here if given in source. City: Publisher.
The basic format for a journal article is:
Surname, A. B., & Surname, C. D. (2018). Title of article in sentence case. Title of Journal Exactly as Given, 2(1), 32-40.
Here's an example of a journal article reference with a breakdown of elements and their formatting.
Here is a reference for a book with a breakdown of elements and their formatting.
Always cite your sources. Follow these Quick Style Guides or the complete style manuals.
Most citation questions can be answered with the quick guides above. For more specific questions, refer to these full manuals, or consult a librarian.