In short, configure a routing protocol and apply it to the VLANs / IP networks.
If you tell us what model of switch you are using, we can point you to the applicable software configuration guide. That will have more details as to the specific commands you should use.
Hope this helps. Please rate helpful posts.