you can use this to call the contribute method:
contract.methods["contribute()"].sendTransaction({value: 2});
or
sendTransaction({ from: "0x111" , to: instance, value:1, data: web3.eth.abi.encodeFunctionSignature('contribute()')
for functions with params, data field can be created like so:
web3.eth.abi.encodeFunctionCall({ name: 'myMethod', type: 'function', inputs: [{ type: 'uint256', name: 'myNumber' },{ type: 'string', name: 'myString' }] }, ['2345675643', 'Hello!%']);
// Drain in console and click submit and done contract.withdraw();