Not right in the head

What is Not right in the head?

Not right in the head definition and meaning on Dictionary terms:
Mentally unsound, as in Physically, she’s quite healthy for ninety, but we suspect she’s not right in the head. This usage was first recorded as right in his wits in 1662.