A railroad subject to this subtitle or Subtitle D is liable to a person, firm, or corporation injured for the damages resulting from:
(1) a prohibited or unlawful act or thing that the railroad does or causes or permits to be done; or
(2) failure of the railroad to perform an act the railroad is required to perform under this subtitle or Subtitle D.