Send ETH to address

Hello, I am trying to forward eth from one address to another, but I am executing the code and nothing is happening. what is the problem?
const Web3 = require(‘web3’)
const Tx = require(‘ethereumjs-tx’).Transaction
const web3 = new Web3(new Web3.providers.HttpProvider(‘https://mainnet.infura.io/’))

const addressFrom = ‘from’
const privateKey = Buffer.from(‘key’, ‘hex’)
const addressTo = ‘to’

const txData = {
gasLimit: web3.utils.toHex(25000),
gasPrice: web3.utils.toHex(10e9), // 10 Gwei
to: addressTo,
from: addressFrom,
value: web3.utils.toHex(web3.utils.toWei(‘123’, ‘ether’))
}

function sendRawTransaction(txData){
web3.eth.getTransactionCount(addressFrom).then(txCount => {
const newNonce = web3.utils.toHex(txCount)
const transaction = new Tx({ …txData, nonce: newNonce }, { chain: ‘mainnet’ })
transaction.sign(privateKey)
const serializedTx = transaction.serialize().toString(‘hex’)
return web3.eth.sendSignedTransaction(‘0x’ + serializedTx)
})
}

Do you have any logging of what is returned from Infura when you call sendSignedTransaction? Also, i notice you are using the plain endpoint, you will also need to create an account, setup a project and use your Project ID url to be safe.

var Tx     = require('ethereumjs-tx').Transaction
const Web3 = require('web3')
const web3 = new Web3('https://ropsten.infura.io/YOUR_INFURA_API_KEY')
const account1 = '' // Your account address 1
const account2 = '' // Your account address 2
const privateKey1 = Buffer.from('YOUR_PRIVATE_KEY_1', 'hex')
web3.eth.getTransactionCount(account1, (err, txCount) => {
  const txObject = {
    nonce:    web3.utils.toHex(txCount),
    to:       account2,
    value:    web3.utils.toHex(web3.utils.toWei('0.1', 'ether')),
    gasLimit: web3.utils.toHex(21000),
    gasPrice: web3.utils.toHex(web3.utils.toWei('10', 'gwei'))
  }
  const tx = new Tx(txObject)
  tx.sign(privateKey1)
  const serializedTx = tx.serialize()
  const raw = '0x' + serializedTx.toString('hex')
  web3.eth.sendSignedTransaction(raw, (err, txHash) => {
    console.log('txHash:', txHash)
  })
})

Here a picture of the code and txHash , use your own Infura API ,and get address from ganache