Sixteen people were injured when a Sydney train crashed into a barrier at Richmond Station.