1) You have to be on a friendly airfield.
2) For re-arming, your aircraft should be static, not moving.
3) For re-fueling, your aircraft's engine should have been turned off.
From the command menu, choose "maintenance" and then select refueling/re-arming.