Try this.
public function contactus() {
$pages ='';
if ($this->request->is('post')) {
debug($this->request->data);exit;
$pages = $this->request->data('Contact');
}
$this->set(compact('pages'));
$this->set('_serialize', ['pages']);
}