How to apply pager in a table using theme function?
Added  the below lines in above and below theme table script.

     $form['pagerTop'] = array('#theme' =&gt; 'pager'); and 
     $form['pagerBottom'] = array('#theme' =&gt; 'pager');