If your vehicle gets stuck on railroad tracks, you should:

If your vehicle gets stuck on railroad tracks for any reason, you should immediately exit the vehicle and walk away from the tracks. Contact the proper emergency authorities.
DMV Writen Test