You're not loading WordPress.
You need to build a theme instead of putting PHP files in the root directory. WordPress will setup the environment and then load your theme making functions like get_post()
available to you without you having to include core files in every PHP file you create.
Take a look at how the default themes are built to get a better understanding of what's involved.