How can i disable comments on posts and pages?

For already published posts or pages you need to uncheck the Allow Comments under the Comments & Pings section on each post.

You also need uncheck the Allow people to post comments on the article via AdministrationSettingsDiscussion so that when creating posts in the future that Allow Comments box is automatically unchecked.