Pagination only working on index page not on a template page

Okay I got it.. Apparently there’s going to be some be issues if you name your page name the same as your custom post type. In this case my page was named ‘articles’ while my custom post type is also named ‘articles’ so that why I it didn’t work. I made a new page tested it and now it works perfectly.

Sorry guys I initially thought it you couldn’t have the same template name as your custom page but I confused it was page names.
Thank you very much for helping me tho, I really appreciated it!