Could be the ECU and the only way you'll know is sending it off for repair.
You might be able to buy a second hand one from eBay but it must be the exact same part number. Then the imobiliser will need to be removed from it or recoded to work for your car.