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.

How to get payment method title of an order in magento 2?

You can get payment method title of order by below code snippets,