Even though all the lightning will not affect the building, if there is lightning conductor the opposite charge of that in the clouds is induced on the pointed end of the conductor. If there is no earthing the flow of electron will be from the building to the conductor or to the building which causes accident