>If everybody switches to electric do we have enough raw materials for batteries like lithium to supply the whole world?
This is a common misconception about batteries. Lithium makes up about 2% of the mass of a Li-Ion battery, and it is more abundant in the Earth's crust than lead or tin.