How can I connect a template to my page?

I want a template and its functions on my page to edit it to my style, how can I do it?