expression
it is not everything to ...; ... is not the only thing that matters
Idiomatic expression used after a verb to say that doing only that one thing is not enough or not the only important thing. Often implies that other qualities or actions are also necessary.
勉強ばかりが能ではない。友達と遊ぶことも大切だ。
Studying is not everything. Playing with friends is also important.
速く走るばかりが能ではない。持久力も必要だ。
Running fast is not the only thing that matters. Endurance is also necessary.
The expression combines the particle ばかり ('only') with 能 ('ability') and the negative copula ではない, literally meaning 'only ... is not the ability'. It is a set idiomatic phrase.