1. A neurostimulation and recording device comprising: a first hermetic package enclosing an electronic circuit for neural recording suitable to be implanted within a head; a first flexible circuit including a plurality of electrodes electrically coupled to the electronic circuit suitable to record neural activity; and a first wireless transceiver electrically coupled to the electronic circuit for neural recording for sending data derived from the neural activity; a second hermetic package enclosing an electronic circuit for neural stimulation suitable to be implanted within a head; a second flexible circuit including a plurality of electrodes electrically coupled to the electrical circuit for neural stimulation suitable to stimulate neurons; a second wireless transceiver electrically coupled to the electronic circuit for neural stimulation for receiving stimulation data; and a control circuit suitable to be external to a human body receiving the data derived from neural activity from and first wireless transceiver, calculating stimulation patterns and sending stimulation data to the second wireless transceiver.