Central locking? Had the same with my glanza when it was in the garage. Opened it with the key, because the battery wasn't in it, only 1 door opened. Connected the battery, car wouldn't start. opened and closed the glanza from the outside, with remote or key and the car starts instantly.
And indeed, check the terminals and the ground from the gearbox-chassis-battery