Pion light-front wave function, parton distribution and the electromagnetic form factor