https://www.popularmechanics.com/military/research/a14106941/us-navy-railgun-may-be-dead/
Problem is the rate of fire and the ability to actually track a target to hit it at the ranges that the Rail Gun advantages can kick in.
USN abandoned it, due to poor anticipated utility.