Posts Page in WordPress loading bare HTML of my homepage

I was able to find the problem. There was a home.php file in my themes directory in wp-content. Due to the template hierarchy of WordPress, the blogs page was reading from this home.php file, where I had some HTML. Since I was the one who had created this file, on deleting it, the Posts page worked correctly.