Molecular dynamics simulation for liquid water using a polarizable and flexible potential