How do you edit the "next page" and "previous page" links on a wordpress theme?

I’m designing my own WordPress theme from scratch and I can’t seem to figure out how to edit the next and previous page links to allow users to go to my older blog post. Anyone can provide a step-by-step tutorial for me? Thanks! 🙂