Hello,
Sorry there is no image in your first post so I didn't see any fault codes.
I'm struggling to understand you a little, as guessing English isn't your first language.
If I'm understanding correctly, you say that the engine will turn over on the ignition now, but it won't run. You also said that you identified an earth issue with the ECU.
The only reason an engine won't start will be because there is either no fuel getting to the engine, or there is no spark to ignite the fuel.
The issue you have is that it could be either because you have both an immobiliser fault and an earth issue.
You can check if it's the earth issue simply. Get a set of jump leads and use the back one to connect to the negative on the battery at one end and clip the other end to something bare metal on the engine block. If that works then the engine isn't properly earthed.
What I fear is that the immobiliser fault is essentially immobilising the car by cutting the fuel supply to the engine. You can often tell if a car has fuel getting to it or not. If there is no fuel it'll turn over very very quickly and sound higher pitched, where if there is fuel coming through it'll tend to turn over a bit slower and sound a deeper tone. It's hard to describe and you have to know what you're listening for.
If the ECU has been replaced have you done any coding or alignment of the ECUs / car network since you introduced the new ECU. It might be that you need your cars security code to code it to the car, which might be what is stopping it from working.