How to get programmatically order data by order id in magento 2?

You can get order data by Order id using below code snippets,

Call function in template file by below way,

The result will be given order data of specific order id.