Converting shapefile to network file and vice versa

How to convert shapefile to network file and vice versa?