A person has tragically died after an incident at a Scots railway station that closed busy lines and saw several rush hour services cancelled.