3G needs a service provider and you pay for it.
WiFi needs a WiFi router. If it is yours or open router like in cafes then it is free.
WiFi is faster than 3G.
3G range and signals are more than WiFi. 3G signals may drop if you are traveling away from metropolitan cities.
Source: 3G vs WiFi