Both sentences are grammatically correct. However, it would be much more idiomatic to say:
1. He was the second of five children.
2. He was the second of two children.
(The "being born" is implicit.)
All the best,
- For Teachers