If a vehicle gets stuck on a railroad track, the driver should:

If your vehicle gets stuck on railroad tracks, immediately exit the vehicle and get away from the tracks. Check signs or signal housing at the crossing for emergency contact information. Call the emergency contact or call 911.
DMV Writen Test