It's a jap quail. To sex them you usually have to tickles their 'special' bits (this is method I know of, if there are any others out there that are reliable I'd like to know ).
Its a male based on its chestnut throat - its of a colour variety known as an Italian (although how you get an Italian Japanese quail has always baffled me). They are not particularly energetic so it would have come from somewhere nearby.