Overriding a Template

I’m trying to override a template. I created the new templates folder and tried to tell wordpress to use a template from that folder rather than the default by following some examples I found online. None of what I tried seemed to work, and the new template was never used. I wanted to ask what the correct format for overriding the template would be.