BRICS leaders have stressed that energy security is a crucial foundation for social and economic development, national security and the welfare of all nations.