Employee mentioned he was feeling light headed, he was advised by supervisor and crew member to get water and take a break. Crew members saw the employee walking next to rail drinking water, then a crew member noticed he had fallen, hit his head on the rail line and was seizing. Emergency services and MSHA were notified & the employee was transported by ambulance to the hospital.