We need some clarification. Regular SMS text and calls would never go over wifi, so that is not making full sense.
Are you saying when you are not connected to wifi, and the phone shows 3G, nothing works, but if you connect to wifi everything works?
DId you reboot the phone? Hold the home and sleep/wake button together for 10 seconds then let go.