How to show user role in author.php

You can register a function in your functions.php like that:

function get_user_role($id) {

    $user = new WP_User($id);

    return array_shift($user->roles);

}

Then in template file you call the function:

<?php $aid = get_the_author_meta('ID'); 
echo get_user_role($aid); ?>