1
He not only speaks Chinese but also Russian.
He speaks not only Chinese but also Russian.
Put not only immediately before the first element and but also immediately before the second one.
The two elements should have the same form. When connecting two nouns, say: ‘He speaks not only Chinese but also Russian.’
When connecting two actions, say: ‘He not only speaks Chinese but also writes it.’
2
Not only he passed the exam, but he received a very good grade.
Not only did he pass the exam, but he also received a very good grade.
When not only begins a sentence, use inversion: put the auxiliary verb before the subject.
If there is no auxiliary verb, use do, does or did: ‘Not only did he pass the exam, but he also received a very good grade.’
With a modal verb, put the modal before the subject: ‘Not only can she sing, but she can also dance.’