You asked:

is pakistan larger than spain

Yes, Pakistan is more populous than Spain.
Pakistan
Pakistan
Pakistan

Spain
Spain
Spain