When you are trying to attach PEX tubing to a gas/oil fired heater, you will need a Water Heater Adapter. The flue on the heater gets very hot (260-480 degrees) and can damage the tubing if an adapter is not used.
PEX tubing and ProPEX Water Heater Adapters can be found at www.supplyhouse.com