Shares of energy companies fell sharply amid concerns about inflation and interest rates.