Two major railway stations were closed and 1,450 people were evacuated after a gas main ruptured in central London.