In this research, the nonlinear free vibration analysis of boron-nitride micro ribbon (BNMR) on the Pasternak elastic foundation under electrical, mechanical and thermal loadings using modified strain gradient theory (MSGT) is studied. Employing the von $K{\acute{a}}rm{\acute{a}}n$ nonlinear geometry theory, the nonlinear equations of motion for the graphene micro ribbon (GMR) using Euler-Bernoulli beam model with considering attached mass and size effects based on Hamilton's principle is obtained. These equations are converted into the nonlinear ordinary differential equations by elimination of the time variable using Kantorovich time-averaging method. To determine nonlinear frequency of GMR under various boundary conditions, and considering mass effect, differential quadrature element method (DQEM) is used. Based on modified strain MSGT, the results of the current model are compared with the obtained results by classical and modified couple stress theories (CT and MCST). Furthermore, the effect of various parameters such as material length scale parameter, attached mass, temperature change, piezoelectric coefficient, two parameters of elastic foundations on the natural frequencies of BNMR is investigated. The results show that for all boundary conditions, by increasing the mass intensity in a fixed position, the linear and nonlinear natural frequency of the GMR reduces. In addition, with increasing of material length scale parameter, the frequency ratio decreases. This results can be used to design and control nano/micro devices and nano electronics to avoid resonance phenomenon.