If you want to answer 'this is not a pen' it would be これはペンじゃありません ... the sentence you wrote as Toritoribesan correctly points out means "This is not a pencil".
Not sure if there was just a typo in the English, and it may not matter at this late date, but I thought it might be best to clarify.